~ubuntu-branches/ubuntu/lucid/rsyslog/lucid-updates

« back to all changes in this revision

Viewing changes to debian/rsyslog.init

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2008-08-11 00:25:33 UTC
  • mfrom: (1.1.6 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080811002533-83ln3s7t1li0b73n
Tags: 3.18.2-1
* New upstream release.
* debian/rsyslog.init
  - Restore default SELinux security context when creating /dev/xconsole.
    Closes: #493171
  - Add "status" action.
* debian/control
  - Bump dependency on lsb-base to >= 3.2-14, which provides status_of_proc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
39
39
 
40
40
# Define LSB log_* functions.
41
 
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
42
41
. /lib/lsb/init-functions
43
42
 
44
43
do_start()
81
80
        then
82
81
                mknod -m 640 /dev/xconsole p
83
82
                chown root:adm /dev/xconsole
 
83
                [ -x /sbin/restorecon ] && /sbin/restorecon /dev/xconsole
84
84
        fi
85
85
}
86
86
 
117
117
        $0 stop
118
118
        $0 start
119
119
        ;;
 
120
  status)
 
121
        status_of_proc -p $RSYSLOGD_PIDFILE $RSYSLOGD_BIN $RSYSLOGD && exit 0 || exit $?
 
122
        ;;
120
123
  *)
121
 
        echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
 
124
        echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2
122
125
        exit 3
123
126
        ;;
124
127
esac