How to determine what commands a FreeBSD rc script runs

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite
1












I'm having problems starting a service managed by rc. I can't see anything in /var/log that looks relevant, so I'd like to try running the command manually.



I know I can read through the script in /usr/local/etc/rc.d, but it does enough magic that I'd probably miss something. Is there a flag or command that will show what an rc script would do without actually doing it?







share|improve this question


















  • 1




    What command is it? What script is failing? RC scripts are, in reality, typically just wrappers ...
    – Kevin_Kinsey
    Nov 6 '17 at 22:44











  • I ended up manually reading through the script. I asked for a general solution so I'd know what to do in the future for other services.
    – David Ehrmann
    Nov 9 '17 at 16:22














up vote
3
down vote

favorite
1












I'm having problems starting a service managed by rc. I can't see anything in /var/log that looks relevant, so I'd like to try running the command manually.



I know I can read through the script in /usr/local/etc/rc.d, but it does enough magic that I'd probably miss something. Is there a flag or command that will show what an rc script would do without actually doing it?







share|improve this question


















  • 1




    What command is it? What script is failing? RC scripts are, in reality, typically just wrappers ...
    – Kevin_Kinsey
    Nov 6 '17 at 22:44











  • I ended up manually reading through the script. I asked for a general solution so I'd know what to do in the future for other services.
    – David Ehrmann
    Nov 9 '17 at 16:22












up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





I'm having problems starting a service managed by rc. I can't see anything in /var/log that looks relevant, so I'd like to try running the command manually.



I know I can read through the script in /usr/local/etc/rc.d, but it does enough magic that I'd probably miss something. Is there a flag or command that will show what an rc script would do without actually doing it?







share|improve this question














I'm having problems starting a service managed by rc. I can't see anything in /var/log that looks relevant, so I'd like to try running the command manually.



I know I can read through the script in /usr/local/etc/rc.d, but it does enough magic that I'd probably miss something. Is there a flag or command that will show what an rc script would do without actually doing it?









share|improve this question













share|improve this question




share|improve this question








edited Nov 6 '17 at 18:36









JdeBP

29k459135




29k459135










asked Nov 6 '17 at 15:45









David Ehrmann

1383




1383







  • 1




    What command is it? What script is failing? RC scripts are, in reality, typically just wrappers ...
    – Kevin_Kinsey
    Nov 6 '17 at 22:44











  • I ended up manually reading through the script. I asked for a general solution so I'd know what to do in the future for other services.
    – David Ehrmann
    Nov 9 '17 at 16:22












  • 1




    What command is it? What script is failing? RC scripts are, in reality, typically just wrappers ...
    – Kevin_Kinsey
    Nov 6 '17 at 22:44











  • I ended up manually reading through the script. I asked for a general solution so I'd know what to do in the future for other services.
    – David Ehrmann
    Nov 9 '17 at 16:22







1




1




What command is it? What script is failing? RC scripts are, in reality, typically just wrappers ...
– Kevin_Kinsey
Nov 6 '17 at 22:44





What command is it? What script is failing? RC scripts are, in reality, typically just wrappers ...
– Kevin_Kinsey
Nov 6 '17 at 22:44













I ended up manually reading through the script. I asked for a general solution so I'd know what to do in the future for other services.
– David Ehrmann
Nov 9 '17 at 16:22




I ended up manually reading through the script. I asked for a general solution so I'd know what to do in the future for other services.
– David Ehrmann
Nov 9 '17 at 16:22















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%2f402857%2fhow-to-determine-what-commands-a-freebsd-rc-script-runs%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%2f402857%2fhow-to-determine-what-commands-a-freebsd-rc-script-runs%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)