~ubuntu-dev/ubuntu/lucid/zabbix/lucid-201002110857

« back to all changes in this revision

Viewing changes to misc/init.d/gentoo/zabbix-trapperd

  • Committer: Bazaar Package Importer
  • Author(s): Michael Ablassmeier
  • Date: 2007-07-02 09:06:51 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070702090651-8l6fl3fjw9rh6l2u
Tags: 1:1.4.1-2
Add patch from SVN in order to fix Incorrect processing of character '%'
in user parameters and remote commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/sbin/runscript
2
 
#
3
 
# Zabbix trapperd start/stop script.
4
 
#
5
 
# Written by A.Tophofen
6
 
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/home/zabbix/bin
7
 
DAEMON=/home/zabbix/bin/zabbix_trapperd
8
 
NAME=zabbix_trapperd
9
 
DESC="Zabbix 1.0"
10
 
PID=/home/zabbix/lock/$NAME.pid
11
 
 
12
 
 
13
 
 
14
 
opts="${opts} reload"
15
 
 
16
 
 
17
 
depend() {
18
 
                need net
19
 
}
20
 
 
21
 
start() {
22
 
        ebegin "Starting $DESC: $NAME"
23
 
        start-stop-daemon --start --pidfile $PID \
24
 
                --exec $DAEMON
25
 
        eend
26
 
}
27
 
stop() {
28
 
        ebegin "Stopping $DESC: $NAME"
29
 
        start-stop-daemon  --stop  --pidfile $PID \
30
 
                --exec $DAEMON
31
 
        eend
32
 
}
33
 
 
34