This file is indexed.

/etc/init.d/svxlink is in svxlink-server 14.08.1-2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/sh

### BEGIN INIT INFO
# Provides:        svxlink
# Required-Start:  $network $local_fs $remote_fs $syslog $time
# Required-Stop:   $remote_fs
# Default-Start:   2 3 4 5
# Default-Stop:    0 1 6
# Short-Description: Start SvxLink Server daemon
# Description: Start SvxLink Server daemon
### END INIT INFO

# Use the following command to activate the start script
#   update-rc.d svxlink start 30 2 3 4 5 . stop 70 0 1 6 .

PATH=/sbin:/bin:/usr/sbin:/usr/bin

. /lib/lsb/init-functions

PNAME=svxlink
NAME="SvxLink Server"
DAEMON=/usr/bin/$PNAME

test -x $DAEMON || exit 0

if [ -r /etc/default/$PNAME ]; then
	. /etc/default/$PNAME
fi

#if [ -n "$PIDFILE" ]; then PIDFILE=/var/run/$PNAME; fi
#if [ -n "$LOGFILE" ]; then LOGFILE=/var/log/$PNAME; fi
#if [ -n "$CFGFILE" ]; then CFGFILE=/etc/svxlink/$PNAME.conf; fi
#if [ -n "$RUNASUSER" ]; then RUNASUSER=svxlink; fi


POPTS="--daemon ${RUNASUSER:+--runasuser=$RUNASUSER} ${PIDFILE:+--pidfile=$PIDFILE} ${LOGFILE:+--logfile=$LOGFILE} ${CFGFILE:+--config=$CFGFILE}"

create_logfile()
{
	touch $LOGFILE
	if [ -n "$RUNASUSER" ]; then
		chown $RUNASUSER $LOGFILE
	fi
}

case $1 in
	start)
		log_daemon_msg "Starting $NAME: $PNAME"
		create_logfile
 		export $ENV
  		start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON -- $POPTS
		log_end_msg $?
  		;;
	stop)
		log_daemon_msg "Stopping $NAME: $PNAME"
  		start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
		log_end_msg $?
		rm -f $PIDFILE
  		;;
	restart|force-reload)
		$0 stop && sleep 2 && $0 start
  		;;
	try-restart)
		if $0 status >/dev/null; then
			$0 restart
		else
			exit 0
		fi
		;;
	reload)
		exit 3
		;;
	status)
		pidofproc -p $PIDFILE $DAEMON >/dev/null
		status=$?
		if [ $status -eq 0 ]; then
			log_success_msg "$NAME is running."
		else
			log_failure_msg "$NAME is not running."
		fi
		exit $status
		;;
	*)
		echo "Usage: $0 {start|stop|restart|try-restart|force-reload|status}"
		exit 2
		;;
esac