cleanup
This commit is contained in:
parent
3d93d01cd1
commit
7665d702a2
22 changed files with 97 additions and 132 deletions
24
includes/gsp_agent.init.gentoo
Normal file
24
includes/gsp_agent.init.gentoo
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!/sbin/runscript
|
||||
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# GF: Config is in $agent_dir/Cfg/Config.pm
|
||||
|
||||
agent_dir=GSP_AGENT_DIR
|
||||
agent_user=GSP_USER
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting GSP Agent"
|
||||
start-stop-daemon --verbose --chdir $agent_dir --start --background --user $agent_user -e PWD="$agent_dir" --exec screen -d -m -t gsp_agent -c gsp_screenrc -S gsp_agent ./gsp_agent_run -pidfile gsp_agent_run.pid
|
||||
eend $? "Failed to start GSP Agent"
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping GSP Agent"
|
||||
start-stop-daemon --stop --quiet --pidfile $agent_dir/gsp_agent_run.pid
|
||||
eend $? "Failed to stop GSP Agent"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue