summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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