Commit c991cbfe authored by ssrq's avatar ssrq

[explorer/init] Introduce special case for Syno-flavoured upstart

While Synology DSM uses upstart as init, it uses /usr/share/init (which is
symlinked to /etc/init) and has special commands to start or stop services.
parent ddb4c338
Pipeline #3138 failed with stage
in 1 minute and 3 seconds
......@@ -240,7 +240,12 @@ check_upstart() {
case $(initctl version)
*'(upstart '*')')
if test -d /etc/init
if test -x /usr/syno/sbin/synoservice \
-a -x /usr/syno/sbin/synoservicectl
# upstart-based Synology init system
echo upstart-syno
elif test -d /etc/init
# modern (DBus-based?) upstart >= 0.5
echo upstart
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment