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
Jérome Perrin
slapos.package
Commits
bf22a0a1
Commit
bf22a0a1
authored
Apr 04, 2016
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Simplify re6stnet restart
parent
8d9ac434
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
playbook/roles/re6stnet/files/centos_6_init_d
playbook/roles/re6stnet/files/centos_6_init_d
+2
-11
No files found.
playbook/roles/re6stnet/files/centos_6_init_d
View file @
bf22a0a1
...
...
@@ -61,16 +61,6 @@ status() {
return
$RETVAL
}
restart
()
{
echo
-n
"Restarting
$NAME
: "
/usr/local/bin/daemon
--user
root
-n
$NAME
--pidfile
=
$PIDFILE
-D
$CONFDIR
--restart
--
$DAEMON
@re6stnet.conf
RETVAL
=
$?
[
$RETVAL
-eq
0
]
&&
touch
$LOCKFILE
[
$RETVAL
-eq
0
]
&&
echo
OK
||
echo
FAIL
echo
return
$RETVAL
}
case
"
$1
"
in
start
)
start
...
...
@@ -82,7 +72,8 @@ case "$1" in
status
;;
restart
)
restart
stop
start
;;
*
)
echo
"Usage: <servicename> {start|stop|status|restart}"
...
...
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