diff --git a/debian/postinst b/debian/postinst index 8b4d601..b334258 100644 --- a/debian/postinst +++ b/debian/postinst @@ -42,7 +42,9 @@ configure_tor_controller() { fi if [ $TORRC_CHANGED -eq 1 ]; then - systemctl reload tor + if [ -d "/run/systemd/system" ]; then + systemctl reload tor + fi fi }