initial import of sources

This commit is contained in:
Олег Бородин
2024-06-18 10:15:22 +02:00
commit ada2a49a64
42 changed files with 12444 additions and 0 deletions

3
initrc/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
*~
hamloggerd
hamloggerd.service

24
initrc/hamloggerd.in Normal file
View 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

View 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