How to determine what commands a FreeBSD rc script runs

Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
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?
freebsd rc
add a comment |Â
up vote
3
down vote
favorite
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?
freebsd rc
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
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
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?
freebsd rc
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?
freebsd rc
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
add a comment |Â
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
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%2f402857%2fhow-to-determine-what-commands-a-freebsd-rc-script-runs%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
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