malloc and start
This commit is contained in:
1 parent
e5b0609234
commit
bcb2dc838e
8 files changed
+66
-3
No files matched your search
@@ -30,4 +30,18 @@ if [ -x /usr/local/opnsense/mvc/script/run_migrations.php ]; then
|
||||
fi
|
||||
/usr/local/sbin/configctl template reload OPNsense/RustProxy >/dev/null 2>&1 || true
|
||||
|
||||
# A package upgrade invokes the previous package pre-deinstall hook, which stops
|
||||
# RustProxy before replacing the binary. Start it again after migrations and
|
||||
# template rendering. Use the installed service helper directly so this does
|
||||
# not depend on configd having finished reloading its action registry. The
|
||||
# helper itself checks enabled=1; on a fresh/default-disabled install this is a
|
||||
# no-op. restart is deliberate: if an old process survived a forced pkg add,
|
||||
# it is stopped before the new binary starts.
|
||||
if [ -x /usr/local/opnsense/scripts/rustproxy/service.sh ]; then
|
||||
if ! /usr/local/opnsense/scripts/rustproxy/service.sh restart; then
|
||||
echo "WARNING: RustProxy package installed but the service could not be started." >&2
|
||||
echo "Check /var/log/rustproxy/rustproxy.log and run: configctl rustproxy start" >&2
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user