malloc and start
This commit is contained in:
1 parent
e5b0609234
commit
bcb2dc838e
8 files changed
+66
-3
No files matched your search
Regular → Executable
+10
-1
@@ -1,4 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/local/sbin/configctl rustproxy stop >/dev/null 2>&1 || true
|
||||
# pkg upgrade runs the old package pre-deinstall hook before installing the new
|
||||
# binary. Stop the supervised child first so the upgrade never leaves an old
|
||||
# RustProxy process running from an unlinked executable. configctl is preferred
|
||||
# on OPNsense; the rc.d fallback also works while configd is restarting.
|
||||
if ! /usr/local/sbin/configctl rustproxy stop >/dev/null 2>&1; then
|
||||
if [ -x /usr/local/etc/rc.d/rustproxy ]; then
|
||||
/usr/local/etc/rc.d/rustproxy onestop >/dev/null 2>&1 || true
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user