/etc/rc.d/init.d/sshd stop
/etc/rc.d/init.d/suricata stop
+# Make sure the OpenVPN authenticator is actually dead
+killall -9 openvpn-authenticator
+
KVER="xxxKVERxxx"
# Backup uEnv.txt if exist
NULL,
};
- run("/sbin/killall", argv);
+ run("/bin/killall", argv);
}
void stopDaemon(void) {
char command[STRING_SIZE];
+ // Stop OpenVPN authenticator
+ stopAuthenticator();
+
int pid = readPidFile("/var/run/openvpn.pid");
if (!pid > 0) {
exit(1);
snprintf(command, STRING_SIZE - 1, "/bin/rm -f /var/run/openvpn.pid");
executeCommand(command);
-
- // Stop OpenVPN authenticator
- stopAuthenticator();
}
static int startAuthenticator(void) {