[go: up one dir, main page]

File: filetea-init.d

package info (click to toggle)
filetea 0.1.18-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,228 kB
  • sloc: javascript: 16,530; ansic: 1,830; sh: 151; makefile: 117
file content (32 lines) | stat: -rwxr-xr-x 766 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

### BEGIN INIT INFO
# Provides:          filetea
# Required-Start:    $syslog
# Required-Stop:     $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start FileTea server daemon at boot time
# Description:       Enable FileTea server daemon to run automatically on system startup.
### END INIT INFO

DAEMON="/opt/jhbuild/build/evd/sbin/filetea"
CONFIG_FILE="/opt/jhbuild/build/evd/etc/filetea/filetea-tls-devel.conf"
PID_FILE="/var/run/filetea.pid"

case "$1" in
  start)
    echo "Starting FileTea server daemon"
    $DAEMON -c $CONFIG_FILE -D
    ;;
  stop)
    echo "Stopping FileTea server daemon"
    kill `cat $PID_FILE`
    ;;
  *)
    echo "Usage: /etc/init.d/filetea {start|stop}"
    exit 1
    ;;
esac

exit 0