[Git][NTPsec/ntpsec][master] Add instructions for setting up boot-time startup to INSTALLL...

Eric S. Raymond gitlab at mg.gitlab.com
Sat Apr 15 10:51:27 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
06199150 by Eric S. Raymond at 2017-04-15T06:48:46-04:00
Add instructions for setting up boot-time startup to INSTALLL...

...and systemd setup/teardown productioons to wscript. Analogous
productions for other init systems  need to be written.

- - - - -


2 changed files:

- INSTALL
- wscript


Changes:

=====================================
INSTALL
=====================================
--- a/INSTALL
+++ b/INSTALL
@@ -141,10 +141,14 @@ Under Unix, the simplest way to compile this package is:
 
   6. You can uninstall cleanly by invoking `./waf uninstall' as root.
 
-  7. You can remove the program binaries and object files from the
+  7. Look under "Boot script setup" in wscript for how to set up
+     boot time startup of ntpd; this will vary according to your
+     init system.
+
+  8. You can remove the program binaries and object files from the
      source code directory by typing `./waf clean'.
 
-  8. To also remove the files that `./waf configure' created (so you can
+  9. To also remove the files that `./waf configure' created (so you can
      configure and compile the package for a different kind of
      computer), type `./waf distclean'.
 


=====================================
wscript
=====================================
--- a/wscript
+++ b/wscript
@@ -244,6 +244,18 @@ def build(ctx):
                   "loading the Python ntp library may be troublesome ---")
 
 #
+# Boot script setup
+#
+
+def systemdenable(ctx):
+    "Enable boot time start with systemd. Must run as root."
+    ctx.exec_command("cp etc/ntpd.service etc/ntp-wait.service /usr/lib/systemd/system/")
+
+def systemddisable(ctx):
+    "Disable boot time start with systemd. Must run as root."
+    ctx.exec_command("rm -f /usr/lib/systemd/system/ntpd.service /usr/lib/systemd/system/ntp-wait.service")
+
+#
 # Miscellaneous utility productions
 #
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/061991506dec8f702808c941f4c0992248128d2b

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/061991506dec8f702808c941f4c0992248128d2b
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170415/a369fd9c/attachment.html>


More information about the vc mailing list