Fix service start at boot time

Former-commit-id: 1de2be1f28
This commit is contained in:
Elie 2014-09-06 21:06:17 -04:00
parent 5320981c06
commit fa5724a8e6
2 changed files with 11 additions and 12 deletions

View file

@ -1,5 +1,14 @@
#!/bin/bash
#!/bin/sh
### BEGIN INIT INFO
# Provides: seafile-server
# Should-Start: seafile-server
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start seafile-server at boot time
### END INIT INFO
#
# Change the value of "user" to your linux user name
user=root

View file

@ -1,10 +0,0 @@
start on (runlevel [2345])
stop on (runlevel [016])
pre-start script
/etc/init.d/seafile-server start
end script
post-stop script
/etc/init.d/seafile-server stop
end script