runit: syslog support
authorMichael Brown <michael.brown@discourse.org>
Wed, 27 Nov 2013 07:25:52 +0000 (07:25 +0000)
committerMichael Brown <michael.brown@discourse.org>
Wed, 27 Nov 2013 07:25:52 +0000 (07:25 +0000)
* runit: add -f to cron config (avoid auto-backgrounding)
* runit: add rsyslog config

standalone.template.yml

index e6f39fc2d1e938c6f5ed7bb2cf04209e78da8a90..ef386c344b529ad0ccc8be85966df8e455754e63 100644 (file)
@@ -43,7 +43,16 @@ run:
         #!/bin/bash
         exec 2>&1
         cd /
-        exec cron
+        exec cron -f
+
+  - file:
+     path: /etc/service/rsyslog/run
+     chmod: "+x"
+     contents: |
+        #!/bin/bash
+        exec 2>&1
+        cd /
+        exec rsyslogd -n
 
   - file:
      path: /var/lib/postgresql/take-database-backup