89 |
+copy("/home/e-smith/ssl.pem/$s.$d.pem", "$pem.$$") |
+copy("/home/e-smith/ssl.pem/$s.$d.pem", "$pem.$$") |
90 |
+ or die "failed to copy SSL PEM: $!"; |
+ or die "failed to copy SSL PEM: $!"; |
91 |
+chmod 0640, "$pem.$$"; |
+chmod 0640, "$pem.$$"; |
92 |
+esmith::util::chownFile("root", "stunnel", "$pem.$$"); |
+esmith::util::chownFile("root", "radiusd", "$pem.$$"); |
93 |
+rename("$pem.$$", "$pem") |
+rename("$pem.$$", "$pem") |
94 |
+ or die "failed to rename $pem.$$ to $pem: $!"; |
+ or die "failed to rename $pem.$$ to $pem: $!"; |
95 |
+ |
+ |
118 |
+ExecStartPre=/sbin/e-smith/systemd/radiusd-certificate |
+ExecStartPre=/sbin/e-smith/systemd/radiusd-certificate |
119 |
+ExecStartPre=-/bin/chown -R radiusd.radiusd /var/run/radiusd |
+ExecStartPre=-/bin/chown -R radiusd.radiusd /var/run/radiusd |
120 |
+ExecStartPre=/usr/sbin/radiusd -C |
+ExecStartPre=/usr/sbin/radiusd -C |
121 |
+ |
+Restart=always |
122 |
+ |
+ |
123 |
+[Install] |
+[Install] |
124 |
+WantedBy=sme-server.target |
+WantedBy=sme-server.target |