We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b2af16 commit 31bf91dCopy full SHA for 31bf91d
contrib/carbonapi/fpm/carbon-user-systemd-reload.sh
@@ -34,12 +34,7 @@ fi
34
35
if [ ! -e "${CONF}" ]; then
36
echo "For use this software you have to create ${CONF} file. You could use /usr/share/carbonapi/carbonapi.example.yaml as default"
37
-else
38
- # On debian jessie (systemd 215) it fails if symlink already exists
39
- systemctl is-enabled carbonapi || systemctl enable carbonapi
40
- # Check if systemd is up and running, e.g. not in chroot
41
- if systemctl 1>/dev/null 2>&1; then
42
- systemctl daemon-reload
43
- systemctl restart carbonapi.service
44
- fi
45
-fi
+fi
+
+# reload systemd
+[[ -e /bin/systemctl ]] && /bin/systemctl daemon-reload ||:
0 commit comments