Custom /etc/init.d/puma script - What is being executed when invoked with start/stop/…?

The name of the pictureThe name of the pictureThe name of the pictureClash 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






share|improve this question

















  • 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














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






share|improve this question

















  • 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












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






share|improve this question













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








share|improve this question












share|improve this question




share|improve this question








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 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












  • 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







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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay