Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ophélie Gagnard
slapos.package
Commits
cb5ded28
Commit
cb5ded28
authored
May 19, 2015
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename init file
parent
d4427618
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
obs/re6st/templates/debian/re6st-node.init
obs/re6st/templates/debian/re6st-node.init
+5
-5
No files found.
obs/re6st/templates/debian/re6st
net
.init
→
obs/re6st/templates/debian/re6st
-node
.init
View file @
cb5ded28
...
...
@@ -10,15 +10,15 @@
# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH
=
/sbin:/usr/sbin:/bin:/usr/bin:/opt/re6st/bin
NAME
=
re6st
net
NAME
=
re6st
-node
DESC
=
"Resilient, Scalable, IPv6 Network application"
DAEMON
=
/opt/re6st/bin/
$NAME
DAEMON
=
/opt/re6st/bin/
re6stnet
CONFDIR
=
/etc/re6stnet
PIDFILE
=
/var/run/
$NAME
.pid
SCRIPTNAME
=
/etc/init.d/
$NAME
# Exit if the package is not installed or not configured
[
-x
$DAEMON
-a
-r
$CONFDIR
/
$NAME
.conf
]
||
exit
0
[
-x
$DAEMON
-a
-r
$CONFDIR
/
re6stnet
.conf
]
||
exit
0
# Load the VERBOSE setting and other rcS variables
.
/lib/init/vars.sh
...
...
@@ -38,7 +38,7 @@ do_start()
# 2 if daemon could not be started
set
start-stop-daemon
--quiet
--pidfile
$PIDFILE
"
$@
"
--stop
--test
--name
$NAME
&&
return
1
"
$@
"
--start
--make-pidfile
--background
--chdir
$CONFDIR
--exec
$DAEMON
--
@
$NAME
.conf
||
return
2
"
$@
"
--start
--make-pidfile
--background
--chdir
$CONFDIR
--exec
$DAEMON
--
@
re6stnet
.conf
||
return
2
}
#
...
...
@@ -68,7 +68,7 @@ do_stop()
return
"
$RETVAL
"
}
cd
$CONFDIR
;
$DAEMON
@
$NAME
.conf
--test
"main_interface != 'lo'"
||
cd
$CONFDIR
;
$DAEMON
@
re6stnet
.conf
--test
"main_interface != 'lo'"
||
case
"
$1
"
in
start
)
exit
0
;;
restart|force-reload
)
set
stop
;;
esac
case
"
$1
"
in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment