diff options
author | Juan RP <xtraeme@gmail.com> | 2014-04-25 23:20:32 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-04-25 23:20:32 +0200 |
commit | b2fec086b9f498102537e0ff936138b2960e4082 (patch) | |
tree | 13dd068d53033bf799a502fff1acbf46dfe0743c /services/ntpd | |
download | runit-void-b2fec086b9f498102537e0ff936138b2960e4082.tar.gz runit-void-b2fec086b9f498102537e0ff936138b2960e4082.tar.xz runit-void-b2fec086b9f498102537e0ff936138b2960e4082.zip |
Initial import of runit init scripts based on ignite.
I did not use ignite because it needs bash, and I don't really want it.
Diffstat (limited to 'services/ntpd')
-rwxr-xr-x | services/ntpd/log/run | 2 | ||||
l--------- | services/ntpd/log/supervise | 1 | ||||
-rwxr-xr-x | services/ntpd/run | 3 | ||||
l--------- | services/ntpd/supervise | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/services/ntpd/log/run b/services/ntpd/log/run new file mode 100755 index 0000000..b36c4da --- /dev/null +++ b/services/ntpd/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec logger -p daemon.notice diff --git a/services/ntpd/log/supervise b/services/ntpd/log/supervise new file mode 120000 index 0000000..7071288 --- /dev/null +++ b/services/ntpd/log/supervise @@ -0,0 +1 @@ +/run/runit/supervise.ntpd-log \ No newline at end of file diff --git a/services/ntpd/run b/services/ntpd/run new file mode 100755 index 0000000..35044d5 --- /dev/null +++ b/services/ntpd/run @@ -0,0 +1,3 @@ +#!/bin/sh +echo "Starting ntpd..." +exec ntpd -g -u ntpd:ntpd -n diff --git a/services/ntpd/supervise b/services/ntpd/supervise new file mode 120000 index 0000000..77d9d0d --- /dev/null +++ b/services/ntpd/supervise @@ -0,0 +1 @@ +/run/runit/supervise.ntpd \ No newline at end of file |