From 7083ea2c3f22f19ebacc91f2236cfacf8a23a9a2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 24 Jul 2017 20:33:19 +0100 Subject: IceBox configs --- netfs/etc/icebox.config | 5 +++++ netfs/etc/init | 25 ------------------------- netfs/etc/netfsd.service | 16 ---------------- 3 files changed, 5 insertions(+), 41 deletions(-) create mode 100644 netfs/etc/icebox.config delete mode 100644 netfs/etc/init delete mode 100644 netfs/etc/netfsd.service 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 -- cgit v1.2.3