aboutsummaryrefslogtreecommitdiff
path: root/shepherd/init.d/ipfs.scm
diff options
context:
space:
mode:
authorEfraim Flashner2020-03-02 08:01:35 +0000
committerShepherd2020-03-02 08:01:35 +0000
commit8b001c765e158fa2d0d71eede1fdc749d965e39b (patch)
tree3c5be196946fe094c8106ca8ae040b0e8c0a9e75 /shepherd/init.d/ipfs.scm
parent1ce2c18ef1bc739c64b16e44a0cd2c404eade42e (diff)
downloadgn-shepherd-services-8b001c765e158fa2d0d71eede1fdc749d965e39b.tar.gz
shepherd: modularize the services
Diffstat (limited to 'shepherd/init.d/ipfs.scm')
-rw-r--r--shepherd/init.d/ipfs.scm12
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)