Custom /etc/init.d/puma script - What is being executed when invoked with start/stop/�
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Was trying to build my own custom /etc/init.d/puma
script for handling puma processes, but cannot get any of my actual script to be executed when any of the normal keywords are used:
sudo service puma start
sudo service puma stop
sudo service puma restart
What exactly is being executed when any of these is invoked, and where does it come from?
Can I somehow override it?
There's no other puma script anywhere on my system I could find (normally it would either be here in /etc/init.d/
or directly in /etc/
according to what I read.
# $1 is the second argument, e.g. start, stop, random_string
case "$1" in
start)
echo "'sudo service puma start' - Will never print this!"
;;
stop)
echo "'sudo service puma stop' - Will never print this!"
;;
restart)
echo "'sudo service puma restart' - Will never print this!"
;;
*)
echo "'sudo service puma anything_else_than_above' - Will always print!"
echo "Usage: $0 stop"
esac
exit 0
linux bash ubuntu services sysvinit
add a comment |Â
up vote
0
down vote
favorite
Was trying to build my own custom /etc/init.d/puma
script for handling puma processes, but cannot get any of my actual script to be executed when any of the normal keywords are used:
sudo service puma start
sudo service puma stop
sudo service puma restart
What exactly is being executed when any of these is invoked, and where does it come from?
Can I somehow override it?
There's no other puma script anywhere on my system I could find (normally it would either be here in /etc/init.d/
or directly in /etc/
according to what I read.
# $1 is the second argument, e.g. start, stop, random_string
case "$1" in
start)
echo "'sudo service puma start' - Will never print this!"
;;
stop)
echo "'sudo service puma stop' - Will never print this!"
;;
restart)
echo "'sudo service puma restart' - Will never print this!"
;;
*)
echo "'sudo service puma anything_else_than_above' - Will always print!"
echo "Usage: $0 stop"
esac
exit 0
linux bash ubuntu services sysvinit
1
Did you give the name of the service to theservice
command?
â Ignacio Vazquez-Abrams
Jun 7 at 5:15
Sorry @IgnacioVazquez-Abrams, flew over me. I had and have been using 'sudo service puma x', error corrected. Thanks!
â GigaBass
Jun 7 at 12:41
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Was trying to build my own custom /etc/init.d/puma
script for handling puma processes, but cannot get any of my actual script to be executed when any of the normal keywords are used:
sudo service puma start
sudo service puma stop
sudo service puma restart
What exactly is being executed when any of these is invoked, and where does it come from?
Can I somehow override it?
There's no other puma script anywhere on my system I could find (normally it would either be here in /etc/init.d/
or directly in /etc/
according to what I read.
# $1 is the second argument, e.g. start, stop, random_string
case "$1" in
start)
echo "'sudo service puma start' - Will never print this!"
;;
stop)
echo "'sudo service puma stop' - Will never print this!"
;;
restart)
echo "'sudo service puma restart' - Will never print this!"
;;
*)
echo "'sudo service puma anything_else_than_above' - Will always print!"
echo "Usage: $0 stop"
esac
exit 0
linux bash ubuntu services sysvinit
Was trying to build my own custom /etc/init.d/puma
script for handling puma processes, but cannot get any of my actual script to be executed when any of the normal keywords are used:
sudo service puma start
sudo service puma stop
sudo service puma restart
What exactly is being executed when any of these is invoked, and where does it come from?
Can I somehow override it?
There's no other puma script anywhere on my system I could find (normally it would either be here in /etc/init.d/
or directly in /etc/
according to what I read.
# $1 is the second argument, e.g. start, stop, random_string
case "$1" in
start)
echo "'sudo service puma start' - Will never print this!"
;;
stop)
echo "'sudo service puma stop' - Will never print this!"
;;
restart)
echo "'sudo service puma restart' - Will never print this!"
;;
*)
echo "'sudo service puma anything_else_than_above' - Will always print!"
echo "Usage: $0 stop"
esac
exit 0
linux bash ubuntu services sysvinit
edited Jun 7 at 12:40
asked Jun 7 at 5:13
GigaBass
1013
1013
1
Did you give the name of the service to theservice
command?
â Ignacio Vazquez-Abrams
Jun 7 at 5:15
Sorry @IgnacioVazquez-Abrams, flew over me. I had and have been using 'sudo service puma x', error corrected. Thanks!
â GigaBass
Jun 7 at 12:41
add a comment |Â
1
Did you give the name of the service to theservice
command?
â Ignacio Vazquez-Abrams
Jun 7 at 5:15
Sorry @IgnacioVazquez-Abrams, flew over me. I had and have been using 'sudo service puma x', error corrected. Thanks!
â GigaBass
Jun 7 at 12:41
1
1
Did you give the name of the service to the
service
command?â Ignacio Vazquez-Abrams
Jun 7 at 5:15
Did you give the name of the service to the
service
command?â Ignacio Vazquez-Abrams
Jun 7 at 5:15
Sorry @IgnacioVazquez-Abrams, flew over me. I had and have been using 'sudo service puma x', error corrected. Thanks!
â GigaBass
Jun 7 at 12:41
Sorry @IgnacioVazquez-Abrams, flew over me. I had and have been using 'sudo service puma x', error corrected. Thanks!
â GigaBass
Jun 7 at 12:41
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448335%2fcustom-etc-init-d-puma-script-what-is-being-executed-when-invoked-with-start%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Did you give the name of the service to the
service
command?â Ignacio Vazquez-Abrams
Jun 7 at 5:15
Sorry @IgnacioVazquez-Abrams, flew over me. I had and have been using 'sudo service puma x', error corrected. Thanks!
â GigaBass
Jun 7 at 12:41