Created
July 15, 2019 06:02
-
-
Save xjasonlyu/13147b901c9edce8fff74e53b8b8873d to your computer and use it in GitHub Desktop.
alpine-init-service-script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/sbin/openrc-run | |
| description="the Coredns DNS server" | |
| pidfile="/run/$RC_SVCNAME.pid" | |
| cfgfile="/etc/$RC_SVCNAME/Corefile" | |
| command="/usr/local/bin/coredns" | |
| command_args="-quiet -conf=$cfgfile" | |
| command_user="nobody" | |
| command_background="yes" | |
| depend() { | |
| need net localmount | |
| after firewall | |
| } | |
| start_pre() { | |
| checkpath --file $cfgfile | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment