init import
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
*~
|
||||
istored
|
||||
istored.service
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# PROVIDE: mbased
|
||||
# REQUIRE: DAEMON
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="mbased"
|
||||
rcvar="mbased_enable"
|
||||
|
||||
pidfile="@srv_rundir@/mbased.pid"
|
||||
command="@prefix@/sbin/${name}"
|
||||
command_args="--asDaemon=true"
|
||||
procname="@prefix@/sbin/${name}"
|
||||
|
||||
load_rc_config ${name}
|
||||
|
||||
: ${mbased_enable:="NO"}
|
||||
|
||||
run_rc_command "$1"
|
||||
#EOF
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=mbased
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=@srv_rundir@/mbased.pid
|
||||
ExecStart=@prefix@/sbin/mbased --asDaemon=true --port=443
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user