]> Frank Brehm's Git Trees - config/uhu1/etc.git/commitdiff
committing changes in /etc after emerge run
authorfrank <frank@uhu1.uhu-banane.de>
Sun, 29 Jan 2012 09:50:46 +0000 (10:50 +0100)
committerroot <root@uhu1.uhu-banane.de>
Sun, 29 Jan 2012 09:50:46 +0000 (10:50 +0100)
Package changes:
+dev-python/twisted-11.0.0

.etckeeper
conf.d/twistd [new file with mode: 0644]
init.d/twistd [new file with mode: 0755]

index 1bb233c54a9d51605fffcfdeb31f7b29ec7469d4..1f68bebd756286e3ffccae43704906c42502d6e2 100755 (executable)
@@ -157,6 +157,7 @@ maybe chmod 0644 './conf.d/sshd'
 maybe chmod 0644 './conf.d/staticroute'
 maybe chmod 0644 './conf.d/svnserve'
 maybe chmod 0644 './conf.d/syslog-ng'
+maybe chmod 0644 './conf.d/twistd'
 maybe chmod 0644 './conf.d/udev'
 maybe chmod 0644 './conf.d/urandom'
 maybe chmod 0700 './config-archive'
@@ -606,6 +607,7 @@ maybe chmod 0755 './init.d/sysfs'
 maybe chmod 0755 './init.d/syslog-ng'
 maybe chmod 0755 './init.d/sysstat'
 maybe chmod 0755 './init.d/termencoding'
+maybe chmod 0755 './init.d/twistd'
 maybe chmod 0755 './init.d/udev'
 maybe chmod 0755 './init.d/udev-mount'
 maybe chmod 0755 './init.d/udev-postmount'
diff --git a/conf.d/twistd b/conf.d/twistd
new file mode 100644 (file)
index 0000000..53788cd
--- /dev/null
@@ -0,0 +1,7 @@
+
+# These are passed to twistd.
+# TWISTD_OPTS="--no_save --logfile=/var/log/twistd -y /etc/twistd.tac"
+# TWISTD_OPTS="--no_save --logfile=/var/log/twistd -f /etc/twistd.tap"
+
+# Make any additions to PYTHONPATH the twistd needs here.
+# PYTHONPATH="/path/to/extra/python/modules"
diff --git a/init.d/twistd b/init.d/twistd
new file mode 100755 (executable)
index 0000000..5d4d4e7
--- /dev/null
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+
+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"
+}