init script for gentoo (#3761)

master
afilippov1985 2016-12-21 12:38:07 +04:00 committed by 无闻
parent bab051a8c1
commit 04fbfad2d4
1 changed files with 16 additions and 0 deletions

16
scripts/init/gentoo/gogs Normal file
View File

@ -0,0 +1,16 @@
#!/sbin/openrc-run
DIR=/home/git/gogs
USER=git
PORT=3000
start_stop_daemon_args="--user ${USER} --chdir ${DIR}"
command="${DIR}/gogs"
command_args="web -port ${PORT}"
command_background=yes
pidfile=/var/run/gogs.pid
depend()
{
need net
}