mirror of
https://github.com/gogs/gogs.git
synced 2026-01-17 04:42:21 +01:00
init script for gentoo (#3761)
This commit is contained in:
16
scripts/init/gentoo/gogs
Normal file
16
scripts/init/gentoo/gogs
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user