mirror of https://github.com/omar-polo/gmid.git
remove the OpenBSD' rc file
now that gmid is packaged on OpenBSD the rc file is maintained in the ports tree.
This commit is contained in:
parent
f759119d2f
commit
3bba4fc55f
|
@ -9,10 +9,6 @@ gencert
|
|||
|
||||
Simple shell script to generate self-signed certificates.
|
||||
|
||||
gmid
|
||||
|
||||
Sample rc(8) script for OpenBSD, to be placed in /etc/rc.d.
|
||||
|
||||
gmid.service
|
||||
|
||||
Simple systemd service file.
|
||||
|
|
14
contrib/gmid
14
contrib/gmid
|
@ -1,14 +0,0 @@
|
|||
#!/bin/ksh
|
||||
#
|
||||
|
||||
daemon="/usr/local/bin/gmid"
|
||||
daemon_flags="-c /etc/gmid.conf"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_pre() {
|
||||
# use rcexec here since daemon_flags may contain arguments with spaces
|
||||
${rcexec} "${daemon} -n ${daemon_flags}"
|
||||
}
|
||||
|
||||
rc_cmd $1
|
|
@ -28,18 +28,6 @@ and then run it with something along the lines of:
|
|||
|
||||
contrib/gencert is a simple script to generate self-signed certificates.
|
||||
|
||||
## OpenBSD rc file
|
||||
|
||||
=> TREE/contrib/gmid contrib/gmid
|
||||
|
||||
contrib/gmid is a sample service file for OpenBSD rc(8). To install it:
|
||||
|
||||
```command to install the rc file
|
||||
# cp contrib/gmid /etc/rc.d
|
||||
```
|
||||
|
||||
then the usual ‘rcctl [start|stop|enable|restart] gmid’ are available.
|
||||
|
||||
## systemd unit file
|
||||
|
||||
=> TREE/contrib/gmid.service contrib/gmid.service
|
||||
|
|
Loading…
Reference in New Issue