diff options
author | Efraim Flashner | 2020-03-02 08:01:35 +0000 |
---|---|---|
committer | Shepherd | 2020-03-02 08:01:35 +0000 |
commit | 8b001c765e158fa2d0d71eede1fdc749d965e39b (patch) | |
tree | 3c5be196946fe094c8106ca8ae040b0e8c0a9e75 /shepherd/init.d/ipfs.scm | |
parent | 1ce2c18ef1bc739c64b16e44a0cd2c404eade42e (diff) | |
download | gn-shepherd-services-8b001c765e158fa2d0d71eede1fdc749d965e39b.tar.gz |
shepherd: modularize the services
Diffstat (limited to 'shepherd/init.d/ipfs.scm')
-rw-r--r-- | shepherd/init.d/ipfs.scm | 12 |
1 files changed, 12 insertions, 0 deletions
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 <service> + #: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) |