initial import of sources
This commit is contained in:
3
initrc/.gitignore
vendored
Normal file
3
initrc/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*~
|
||||
hamloggerd
|
||||
hamloggerd.service
|
||||
24
initrc/hamloggerd.in
Normal file
24
initrc/hamloggerd.in
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# PROVIDE: hamloggerd
|
||||
# REQUIRE: DAEMON
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="hamloggerd"
|
||||
rcvar="hamloggerd_enable"
|
||||
|
||||
pidfile="@srv_rundir@"/hamloggerd.pid
|
||||
command="@prefix@/sbin/${name}"
|
||||
command_args="-daemon"
|
||||
procname="@prefix@/sbin/${name}"
|
||||
|
||||
load_rc_config ${name}
|
||||
|
||||
: ${hamloggerd_enable:="NO"}
|
||||
|
||||
run_rc_command "$1"
|
||||
#EOF
|
||||
|
||||
12
initrc/hamloggerd.service.in
Normal file
12
initrc/hamloggerd.service.in
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=hamloggerd
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=@srv_rundir@/hamloggerd.pid
|
||||
ExecStart=@prefix@/sbin/hamloggerd
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user