diff options
Diffstat (limited to 'foo/etc/sv/ntpd')
-rwxr-xr-x | foo/etc/sv/ntpd/log/run | 2 | ||||
l--------- | foo/etc/sv/ntpd/log/supervise | 1 | ||||
-rwxr-xr-x | foo/etc/sv/ntpd/run | 3 | ||||
l--------- | foo/etc/sv/ntpd/supervise | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/foo/etc/sv/ntpd/log/run b/foo/etc/sv/ntpd/log/run new file mode 100755 index 0000000..b36c4da --- /dev/null +++ b/foo/etc/sv/ntpd/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec logger -p daemon.notice diff --git a/foo/etc/sv/ntpd/log/supervise b/foo/etc/sv/ntpd/log/supervise new file mode 120000 index 0000000..7071288 --- /dev/null +++ b/foo/etc/sv/ntpd/log/supervise @@ -0,0 +1 @@ +/run/runit/supervise.ntpd-log \ No newline at end of file diff --git a/foo/etc/sv/ntpd/run b/foo/etc/sv/ntpd/run new file mode 100755 index 0000000..35044d5 --- /dev/null +++ b/foo/etc/sv/ntpd/run @@ -0,0 +1,3 @@ +#!/bin/sh +echo "Starting ntpd..." +exec ntpd -g -u ntpd:ntpd -n diff --git a/foo/etc/sv/ntpd/supervise b/foo/etc/sv/ntpd/supervise new file mode 120000 index 0000000..77d9d0d --- /dev/null +++ b/foo/etc/sv/ntpd/supervise @@ -0,0 +1 @@ +/run/runit/supervise.ntpd \ No newline at end of file |