summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-07-24 20:33:19 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-07-24 20:45:15 +0100
commit7083ea2c3f22f19ebacc91f2236cfacf8a23a9a2 (patch)
treee9905a6eb2a5000d622cbccb02742a86fc46e959
parentRe-enable -flto (diff)
downloadnetfs-1.2.0.4.tar.bz2
netfs-1.2.0.4.tar.xz
netfs-1.2.0.4.zip
IceBox configsnetfs-1.2.0.4
-rw-r--r--netfs/etc/icebox.config5
-rw-r--r--netfs/etc/init25
-rw-r--r--netfs/etc/netfsd.service16
3 files changed, 5 insertions, 41 deletions
diff --git a/netfs/etc/icebox.config b/netfs/etc/icebox.config
new file mode 100644
index 0000000..eed955b
--- /dev/null
+++ b/netfs/etc/icebox.config
@@ -0,0 +1,5 @@
+IceBox.Service.NetFSD=netfsd:createNetFSDaemon
+IceBox.InheritProperties=1
+NetFSD.ConfigPath=/etc/netfs/daemon.xml
+NetFSD.ThreadPool.SizeMax=50
+NetFSD.ThreadPool.Size=8
diff --git a/netfs/etc/init b/netfs/etc/init
deleted file mode 100644
index 6e406c5..0000000
--- a/netfs/etc/init
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/sbin/runscript
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting NetFS daemon"
- /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 \
- --daemon --pidfile /var/run/netfsd.pid
- eend $?
-}
-
-stop() {
- ebegin "Stopping NetFS daemon"
- kill `cat /var/run/netfsd.pid`
- eend $?
-}
-
diff --git a/netfs/etc/netfsd.service b/netfs/etc/netfsd.service
deleted file mode 100644
index 8fba029..0000000
--- a/netfs/etc/netfsd.service
+++ /dev/null
@@ -1,16 +0,0 @@
-[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