Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
c1671c0e
Commit
c1671c0e
authored
Sep 04, 2007
by
Michael Hanselmann
Browse files
Use configure's paths in the init script example.
Reviewed-by: schreiberal
parent
bd205d0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
doc/examples/Makefile.am
View file @
c1671c0e
EXTRA_DIST
=
ganeti.initd ganeti.cron
nodist_bin_SCRIPTS
=
ganeti.initd
EXTRA_DIST
=
ganeti.initd.in ganeti.cron
CLEANFILES
=
$(nodist_bin_SCRIPTS)
ganeti.initd
:
ganeti.initd.in
sed
\
-e
"s#@PREFIX@#
$(prefix)
#g"
\
-e
"s#@SYSCONFDIR@#
$(sysconfdir)
#g"
\
-e
"s#@LOCALSTATEDIR@#
$(localstatedir)
#g"
\
<
$<
>
$@
doc/examples/ganeti.initd
→
doc/examples/ganeti.initd
.in
100755 → 100644
View file @
c1671c0e
#!
/bin/sh
#!/bin/sh
# ganeti node daemon starter script
# based on skeleton from Debian GNU/Linux
PATH
=
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
NODED
=
/usr/local/sbin/ganeti-noded
MASTER
=
/usr/local/sbin/ganeti-master
NAME
=
ganeti-noded
SCRIPTNAME
=
/etc/init.d/ganeti
DESC
=
"Ganeti cluster"
NAME
=
ganeti-noded
NODED
=
@PREFIX@/sbin/ganeti-noded
MASTER
=
@PREFIX@/sbin/ganeti-master
SCRIPTNAME
=
@SYSCONFDIR@/init.d/ganeti
test
-f
$NODED
||
exit
0
.
/lib/lsb/init-functions
check_config
()
{
for
fname
in
/var/lib/ganeti/ssconf_node_pass /var/lib/ganeti/server.pem
;
do
for
fname
in
\
"@LOCALSTATEDIR@/lib/ganeti/ssconf_node_pass"
\
"@LOCALSTATEDIR@/lib/ganeti/server.pem"
do
if
!
[
-f
"
$fname
"
]
;
then
log_end_msg 0
log_warning_msg
"Config
$fname
not there, will not run."
...
...
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