Sha256: 139aa5344977c0602af4b3ad5bbf503c33cb7980efd8053116f5baeb41b09788
Contents?: true
Size: 1.14 KB
Versions: 45
Compression:
Stored size: 1.14 KB
Contents
#!/bin/sh ### ### /etc/init.d/sekkaserver file for Debian ### ### BEGIN INIT INFO # Provides: sekkaserver # Required-Start: $network $local_fs $remote_fs # Required-Stop: $network $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: start sekka-server daemon ### END INIT INFO # Defaults RUN_MODE="daemons" PIDFILE=/home/sekka/.sekka-server/pid LOGFILE=/home/sekka/.sekka-server/server.log # clear conflicting settings from the environment unset TMPDIR . /lib/lsb/init-functions case "$1" in start) log_daemon_msg "Starting sekka-server daemon" su - sekka -c "nohup sekka-server > ${LOGFILE} &" log_end_msg 0 ;; stop) log_daemon_msg "Stopping sekka-server daemon" kill -KILL `cat ${PIDFILE}` log_end_msg 0 ;; status) log_daemon_msg "sekka-server status" ps -p `cat ${PIDFILE}` | grep sekka-server if [ "$?" = "0" ] ; then echo " sekka-server is running" else echo " sekka-server is not running" fi log_end_msg 0 ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: /etc/init.d/sekkaserver {status|start|stop|restart}" exit 1 ;; esac exit 0
Version data entries
45 entries across 45 versions & 1 rubygems