initial import

This commit is contained in:
Олег Бородин
2024-01-16 09:02:47 +02:00
commit e18bc7beef
61 changed files with 17123 additions and 0 deletions

23
initrc/webservd Normal file
View File

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

23
initrc/webservd.in Normal file
View File

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

12
initrc/webservd.service Normal file
View File

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

View File

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