From 99ef0aff32e873ae1d7782c9420eba9149a65da3 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 28 Dec 2017 04:54:29 +0100 Subject: [PATCH] committing changes in /etc after emerge run Package changes: +dev-python/twisted-16.6.0-r3 --- .etckeeper | 1 + init.d/twistd | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 init.d/twistd diff --git a/.etckeeper b/.etckeeper index 70a15390..396f450a 100755 --- a/.etckeeper +++ b/.etckeeper @@ -1798,6 +1798,7 @@ maybe chmod 0755 'init.d/sysfs' maybe chmod 0755 'init.d/sysstat' maybe chmod 0755 'init.d/tcsd' maybe chmod 0755 'init.d/termencoding' +maybe chmod 0755 'init.d/twistd' maybe chmod 0755 'init.d/udev' maybe chmod 0755 'init.d/udev-settle' maybe chmod 0755 'init.d/udev-trigger' diff --git a/init.d/twistd b/init.d/twistd new file mode 100755 index 00000000..b031b002 --- /dev/null +++ b/init.d/twistd @@ -0,0 +1,25 @@ +#!/sbin/openrc-run + +depend() { + need net +} + +start() { + if [ -z "${TWISTD_OPTS}" ]; then + eerror "TWISTD_OPTS is not set!" + eerror "You need to configure twistd in /etc/conf.d/twistd." + return 1 + fi + export PYTHONPATH + ebegin "Starting twistd" + start-stop-daemon --start --quiet --pidfile /var/run/twistd.pid \ + --exec /usr/bin/twistd -- --pidfile /var/run/twistd.pid \ + ${TWISTD_OPTS} + eend $? "Failed to start twistd" +} + +stop() { + ebegin "Stopping twistd" + start-stop-daemon --stop --quiet --pidfile /var/run/twistd.pid + eend $? "Failed to stop twistd" +} -- 2.39.5