initial import

This commit is contained in:
Олег Бородин
2023-10-20 13:43:23 +02:00
commit b1daca98b5
32 changed files with 11403 additions and 0 deletions

23
initrc/filerd Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# $Id$
#
# PROVIDE: filerd
# REQUIRE: DAEMON
. /etc/rc.subr
name="filerd"
rcvar="filerd_enable"
pidfile="/home/ziggi/projects/filer/tmp.run"/filerd.pid
command="/usr/local/sbin/${name}"
command_args="-daemon"
procname="/usr/local/sbin/${name}"
load_rc_config ${name}
: ${filerd_enable:="NO"}
run_rc_command "$1"
#EOF

23
initrc/filerd.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# $Id$
#
# PROVIDE: filerd
# REQUIRE: DAEMON
. /etc/rc.subr
name="filerd"
rcvar="filerd_enable"
pidfile="@srv_rundir@"/filerd.pid
command="@prefix@/sbin/${name}"
command_args="-daemon"
procname="@prefix@/sbin/${name}"
load_rc_config ${name}
: ${filerd_enable:="NO"}
run_rc_command "$1"
#EOF

12
initrc/filerd.service Normal file
View File

@@ -0,0 +1,12 @@
[Unit]
Description=filerd
[Service]
Type=forking
PIDFile=/home/ziggi/projects/filer/tmp.run/filerd.pid
ExecStart=/usr/local/sbin/filerd
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target

12
initrc/filerd.service.in Normal file
View File

@@ -0,0 +1,12 @@
[Unit]
Description=filerd
[Service]
Type=forking
PIDFile=@srv_rundir@/filerd.pid
ExecStart=@prefix@/sbin/filerd
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target