turn off the initscript feature altogether in nodes that have machinectl (i.e. f20...
[nodemanager.git] / sliver-systemd / vinit.service
1 [Unit]
2 Description=User-defined initscript launcher
3 After=network-online.target
4 Requires=network-online.target
5
6 # inspired from
7 # http://www.freedesktop.org/software/systemd/man/systemd.service.html
8 # stoppable oneshot service
9 [Service]
10 Type=oneshot
11 RemainAfterExit=yes
12 ExecStart=/bin/bash -c ' [ -f /etc/rc.d/init.d/vinit.slice ] && /etc/rc.d/init.d/vinit.slice start $(cat /etc/slicename) 2>&1 >> /var/log/vinit & '
13 ExecStop= /bin/bash -c ' [ -f /etc/rc.d/init.d/vinit.slice ] && /etc/rc.d/init.d/vinit.slice stop $(cat /etc/slicename) 2>&1 >> /var/log/vinit & '
14
15 [Install]
16 WantedBy=multi-user.target