From b2fec086b9f498102537e0ff936138b2960e4082 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 25 Apr 2014 23:20:32 +0200 Subject: 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. --- services/ntpd/log/run | 2 ++ services/ntpd/log/supervise | 1 + services/ntpd/run | 3 +++ services/ntpd/supervise | 1 + 4 files changed, 7 insertions(+) create mode 100755 services/ntpd/log/run create mode 120000 services/ntpd/log/supervise create mode 100755 services/ntpd/run create mode 120000 services/ntpd/supervise (limited to 'services/ntpd') 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 -- cgit 1.4.1