summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-07-19 16:19:04 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-07-19 16:19:04 +0100
commit3abae723cf9831f3108cbfdd38c8779c4013e5ef (patch)
treea650c7b6441e5977695dd7d165405fcfd089e14c
parentLook up the resource only once (diff)
downloadnetfs-3abae723cf9831f3108cbfdd38c8779c4013e5ef.tar.bz2
netfs-3abae723cf9831f3108cbfdd38c8779c4013e5ef.tar.xz
netfs-3abae723cf9831f3108cbfdd38c8779c4013e5ef.zip
Add the systemd service file
-rw-r--r--netfs/etc/netfsd.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/netfs/etc/netfsd.service b/netfs/etc/netfsd.service
new file mode 100644
index 0000000..8fba029
--- /dev/null
+++ b/netfs/etc/netfsd.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=NetFSD
+
+[Service]
+ExecStart=/usr/bin/icebox \
+ --IceBox.Service.NetFSD=netfsd:createNetFSDaemon \
+ --NetFSD.ConfigPath=/etc/netfs/daemon.xml \
+ --Ice.UseSyslog=1 \
+ --Ice.ProgramName=netfsd \
+ --Ice.SyslogFacility=LOG_DAEMON \
+ --NetFSD.ThreadPool.SizeMax=200 \
+ --NetFSD.ThreadPool.Size=8
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target