diff --git a/conf/seafile-server b/conf/seafile-server index 1b9dfd6..7fd0971 100644 --- a/conf/seafile-server +++ b/conf/seafile-server @@ -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 diff --git a/conf/seafile-server.conf b/conf/seafile-server.conf deleted file mode 100644 index 9ca371c..0000000 --- a/conf/seafile-server.conf +++ /dev/null @@ -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 \ No newline at end of file