~ubuntu-branches/ubuntu/hoary/syslog-ng/hoary

« back to all changes in this revision

Viewing changes to debian/syslog-ng.init

  • Committer: Bazaar Package Importer
  • Author(s): SZALAY Attila
  • Date: 2002-03-04 21:29:11 UTC
  • Revision ID: james.westby@ubuntu.com-20020304212911-40evnqxz6a46kojt
Tags: 1.5.15-1
* New upstream version.
* Doesn't drop connections to the floor on reload. Closes: #129819, #132708

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
#
 
3
# skeleton      example file to build /etc/init.d/ scripts.
 
4
#               This file should be used to construct scripts for /etc/init.d.
 
5
#
 
6
#               Written by Miquel van Smoorenburg <miquels@cistron.nl>.
 
7
#               Modified for Debian GNU/Linux
 
8
#               by Ian Murdock <imurdock@gnu.ai.mit.edu>.
 
9
#
 
10
# Version:      @(#)skeleton  1.8  03-Mar-1998  miquels@cistron.nl
 
11
#
 
12
# This file was customized by SZALAY Attila <sasa@debian.org>
 
13
 
 
14
test -f /sbin/syslog-ng || exit 0
 
15
 
 
16
case "$1" in
 
17
  start)
 
18
        echo -n "Starting system logging: syslog-ng"
 
19
        start-stop-daemon --start --quiet --exec /sbin/syslog-ng
 
20
        echo "."
 
21
        ;;
 
22
  stop)
 
23
        echo -n "Stopping system logging: syslog-ng"
 
24
        start-stop-daemon --stop --quiet --pidfile /var/run/syslog-ng.pid
 
25
        echo "."
 
26
        ;;
 
27
  reload|force-reload)
 
28
        start-stop-daemon --stop --signal 1 --quiet --pidfile /var/run/syslog-ng.pid
 
29
        ;;
 
30
  restart)
 
31
        echo -n "Stopping system logging: syslog-ng"
 
32
        start-stop-daemon --stop --quiet --pidfile /var/run/syslog-ng.pid
 
33
        echo "."
 
34
        sleep 1
 
35
        echo -n "Starting system logging: syslog-ng"
 
36
        start-stop-daemon --start --quiet --exec /sbin/syslog-ng
 
37
        echo "."
 
38
        ;;
 
39
  *)
 
40
        echo "Usage: /etc/init.d/syslog-ng {start|stop|restart|reload|force-reload}" >&2
 
41
        exit 1
 
42
        ;;
 
43
esac
 
44
 
 
45
exit 0