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

Version Path
sekka-1.8.0 script/sekkaserver.debian
sekka-1.7.1 script/sekkaserver.debian
sekka-1.7.0 script/sekkaserver.debian
sekka-1.6.6 script/sekkaserver.debian
sekka-1.6.5 script/sekkaserver.debian
sekka-1.6.4 script/sekkaserver.debian
sekka-1.6.3 script/sekkaserver.debian
sekka-1.6.2 script/sekkaserver.debian
sekka-1.6.1 script/sekkaserver.debian
sekka-1.6.0 script/sekkaserver.debian
sekka-1.5.9 script/sekkaserver.debian
sekka-1.5.8 script/sekkaserver.debian
sekka-1.5.7 script/sekkaserver.debian
sekka-1.5.6 script/sekkaserver.debian
sekka-1.5.5 script/sekkaserver.debian
sekka-1.5.4 script/sekkaserver.debian
sekka-1.5.3 script/sekkaserver.debian
sekka-1.5.2 script/sekkaserver.debian
sekka-1.5.1 script/sekkaserver.debian
sekka-1.5.0 script/sekkaserver.debian