drbd-utils: fix the path of init script

The path of init script in the systemd service is not the actual
installed path, the service failed to start with error:

drbd.service: Failed at step EXEC spawning /etc/rc.d/init.d/drbd: No
such file or directory

So fix it with the correct path

fix #187

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
This commit is contained in:
Jackie Huang 2020-03-16 10:13:50 +08:00 committed by babak sarashki
parent 1e86169246
commit 5ae0c0b8bb

View File

@ -7,9 +7,9 @@ Type=forking
Restart=no
KillMode=process
RemainAfterExit=yes
ExecStart=/etc/rc.d/init.d/drbd start
ExecStop=/etc/rc.d/init.d/drbd stop
ExecReload=/etc/rc.d/init.d/drbd reload
ExecStart=/etc/init.d/drbd start
ExecStop=/etc/init.d/drbd stop
ExecReload=/etc/init.d/drbd reload
TimeoutSec=5min
[Install]