From 8b001c765e158fa2d0d71eede1fdc749d965e39b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 2 Mar 2020 08:01:35 +0000 Subject: shepherd: modularize the services --- shepherd/init.d/ipfs.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 shepherd/init.d/ipfs.scm (limited to 'shepherd/init.d/ipfs.scm') diff --git a/shepherd/init.d/ipfs.scm b/shepherd/init.d/ipfs.scm new file mode 100644 index 0000000..1b8d21a --- /dev/null +++ b/shepherd/init.d/ipfs.scm @@ -0,0 +1,12 @@ +(define ipfs + (make + #:provides '(ipfs) + #:docstring "Run the IPFS daemon" + #:start (make-forkexec-constructor + '("/usr/bin/sudo" "/home/shepherd/run_ipfs.sh") + #:log-file "/home/shepherd/logs/ipfs.log") + #:stop (make-kill-destructor) + #:respawn? #t)) +(register-services ipfs) + +(start ipfs) -- cgit v1.2.3