1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/testing/inetutils-syslogd/inetutils-syslogd.setup
IT Offshore fb2496e8e0 testing/inetutils-syslogd: new aport
A small syslogd for logging to multiple files
http://www.gnu.org/software/inetutils/

revised complete patch for inetutils-syslogd.

post-install - just gives status / info message - configuration is
now done by /sbin/setup-inetutils-syslogd. Both scripts now use the
system colours $STRONG $RED $GREEN.

post-deinstall - just adds back busybox syslog to boot runlevel &
shows the status of syslog & cron (as cron will be stopped by removing
any syslog)
2013-11-15 15:56:53 +00:00

28 lines
853 B
Bash

#!/bin/sh
NORMAL="\033[1;0m"
STRONG="\033[1;1m"
RED="\033[1;31m"
GREEN="\033[1;32m"
print_stop() {
local prompt="${STRONG}$1 ${RED}$2${NORMAL}"
printf "${prompt} %s"
}
print_start() {
local prompt="${STRONG}$1 ${GREEN}$2${NORMAL}"
printf "${prompt} %s"
}
print_stop "\nWould you like to STOP BusyBox Syslog & remove it from the Boot Runlevel ?" "[ Enter or Y to remove ]:"; read ans
if [ -z "$ans" ] || [ "$ans" = "y" ] || [ "$ans" = "Y" ]; then
echo; rc-update del syslog boot; rc-service syslog stop
fi
print_start "\nWould you like to START inetutils-syslogd & add it to the Boot Runlevel ?" "[ Enter or Y to add ]:"; read ans
if [ -z "$ans" ] || [ "$ans" = "y" ] || [ "$ans" = "Y" ]; then
echo; rc-update add inetutils-syslogd boot; rc-service inetutils-syslogd start; rc-service cron restart; echo
fi
exit 0