* killproc in init script now properly uses PID files * pidofproc now checks PID files in init script * Will no longer attempt to start klogd if running in container * Updated default syslog.conf to prevent annoying 'noone' errors * Updated usher to use /bin/sh * Removed chroot from usher (will be performed by latest snap)
30 lines
501 B
Bash
Executable File
30 lines
501 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case $1 in
|
|
preinst)
|
|
exit 0
|
|
;;
|
|
postinst)
|
|
if [ ! -f /etc/syslog.conf ]; then
|
|
install -m 644 /usr/share/sysklogd/syslog.conf /etc/syslog.conf
|
|
fi
|
|
if [ ! -f /etc/default/sysklogd ]; then
|
|
install -m 644 /usr/share/sysklogd/sysklogd.default /etc/default/sysklogd
|
|
fi
|
|
|
|
if [ -f /var/run/syslogd.pid ]; then
|
|
/etc/init.d/sysklogd restart
|
|
fi
|
|
|
|
update-rc enable sysklogd
|
|
;;
|
|
prerm)
|
|
exit 0
|
|
;;
|
|
postrm)
|
|
exit 0
|
|
;;
|
|
esac
|