Skip to content
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

Commit e1ba13c

Browse files
committed
daemon shell
1 parent b00af25 commit e1ba13c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎moduleab.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ function run() {
1414
}
1515

1616
function start(){
17-
setsid run &
17+
run &
18+
disown
1819
echo "ModuleAB Agent Started."
1920
}
2021

@@ -29,7 +30,7 @@ function restart(){
2930
start
3031
}
3132

32-
if [ 'x' = "${1}x"]; then
33+
if [ 'x' = "${1}x" ]; then
3334
echo "$0 {start|stop|restart}"
3435
else
3536
$1

0 commit comments

Comments
 (0)