git ssb

0+

cel / sslh



Tree: 00d5872aa176a23588f143551aa4b7e8dd1c0ca6

Files: 00d5872aa176a23588f143551aa4b7e8dd1c0ca6 / scripts / etc.init.d.sslh

1017 bytesRaw
1#! /bin/sh
2
3### BEGIN INIT INFO
4# Provides: sslh
5# Required-Start: $remote_fs $syslog
6# Required-Stop: $remote_fs $syslog
7# Default-Start: 2 3 4 5
8# Default-Stop: 1
9# Short-Description: sslh proxy ssl & ssh connections
10### END INIT INFO
11
12set -e
13tag=sslh
14facility=user.info
15
16# /etc/init.d/sslh: start and stop the sslh proxy daemon
17
18if test -f /etc/default/sslh; then
19 . /etc/default/sslh
20fi
21
22# The prefix is normally filled by make install. If
23# installing by hand, fill it in yourself!
24PREFIX=
25DAEMON=$PREFIX/sbin/sslh
26
27start()
28{
29 echo "Start services: sslh"
30 $DAEMON -F/etc/sslh.cfg
31 logger -t ${tag} -p ${facility} -i 'Started sslh'
32}
33
34stop()
35{
36 echo "Stop services: sslh"
37 killall $DAEMON
38 logger -t ${tag} -p ${facility} -i 'Stopped sslh'
39}
40
41
42case "$1" in
43 start)
44 start
45 ;;
46 stop)
47 stop
48 ;;
49 restart)
50 stop
51 sleep 5
52 start
53 ;;
54 *)
55 echo "Usage: /etc/init.d/sslh {start|stop|restart}" >&2
56 ;;
57esac
58
59exit 0
60

Built with git-ssb-web