How to view daemon stdout in openrc?Polkit/Consolekit is not working in openRCSystemd init message appears...
How to explain that the sums of numerators over sums of denominators isn't the same as the mean of ratios?
Are 1 in 6 deaths in the USA due to lead exposure?
What are the limits on an impeached and not convicted president?
Transiting through Switzerland by coach with lots of cash
What are the most important factors in determining how fast technology progresses?
I pay for a service, but I miss the broadcast
Is there any specific significance of inverse demand?
Race condition interview question: Min and Max range of an integer
AC/DC 100A clamp meter
How come the Russian cognate for the Czech word "čerstvý" (fresh) means entirely the opposite thing (stale)?
Does SQL Server's serializable isolation level lock entire table
"To Verb a Noun"
In what sense is SL(2,q) "very far from abelian"?
Composing religious songs and melodies on Shabbos
What is a practical use for this metric?
How does Donald Trump manage to remain so popular over a rather long period of time?
Does the Flixbus N770 from Antwerp to Copenhagen go by ferry to Denmark
Characters in a conversation
Is there a penalty for switching targets?
Can something have more sugar per 100g than the percentage of sugar that's in it?
Go (to / in) your own way
Can I voluntarily exit from the US after a 20 year overstay, or could I be detained at the airport?
"Es gefällt ihm." How to identify similar exceptions?
Minimum perfect squares needed to sum up to a target
How to view daemon stdout in openrc?
Polkit/Consolekit is not working in openRCSystemd init message appears when booting OpenRCDoes OpenRC support cgroups v2?Error while starting Docker daemonGentoo's openrc hangs forever in “caching service dependencies…”Set DM on OpenRC
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}
How do I find stdout of a process in openrc?
Here's how I created my daemon.
/etc/init.d/mydaemon
#!/sbin/openrc-run
command="python3"
command_args="/srv/http/tornado.py"
command_background="yes"
pidfile="/tmp/tornado.pid"
All I get in my logs is:
* Starting tornado ... [ ok ]
I have default /etc/rc.conf with set rc_logger="YES". What I would like to get is something like systemd allows to view stdout of a daemon with sudo journalctl -u mydaemon
daemon stdout openrc
add a comment
|
How do I find stdout of a process in openrc?
Here's how I created my daemon.
/etc/init.d/mydaemon
#!/sbin/openrc-run
command="python3"
command_args="/srv/http/tornado.py"
command_background="yes"
pidfile="/tmp/tornado.pid"
All I get in my logs is:
* Starting tornado ... [ ok ]
I have default /etc/rc.conf with set rc_logger="YES". What I would like to get is something like systemd allows to view stdout of a daemon with sudo journalctl -u mydaemon
daemon stdout openrc
add a comment
|
How do I find stdout of a process in openrc?
Here's how I created my daemon.
/etc/init.d/mydaemon
#!/sbin/openrc-run
command="python3"
command_args="/srv/http/tornado.py"
command_background="yes"
pidfile="/tmp/tornado.pid"
All I get in my logs is:
* Starting tornado ... [ ok ]
I have default /etc/rc.conf with set rc_logger="YES". What I would like to get is something like systemd allows to view stdout of a daemon with sudo journalctl -u mydaemon
daemon stdout openrc
How do I find stdout of a process in openrc?
Here's how I created my daemon.
/etc/init.d/mydaemon
#!/sbin/openrc-run
command="python3"
command_args="/srv/http/tornado.py"
command_background="yes"
pidfile="/tmp/tornado.pid"
All I get in my logs is:
* Starting tornado ... [ ok ]
I have default /etc/rc.conf with set rc_logger="YES". What I would like to get is something like systemd allows to view stdout of a daemon with sudo journalctl -u mydaemon
daemon stdout openrc
daemon stdout openrc
edited May 23 '18 at 3:29
karel
79511 silver badges19 bronze badges
79511 silver badges19 bronze badges
asked May 22 '18 at 21:10
deathangel908deathangel908
15114 bronze badges
15114 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
You can specify output_log, error_log or output_logger, error_logger. So you can extend you service file to be
#!/sbin/openrc-run
command="python3"
command_args="/srv/http/tornado.py"
command_background="yes"
pidfile="/tmp/tornado.pid"
output_log="/var/log/tornado.log"
error_log="/var/log/tornado.err"
And then you will find the output inside /var/log/tornado.log. More details can be found in manpage of openrc-run (openrc-run(8)).
add a comment
|
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f445427%2fhow-to-view-daemon-stdout-in-openrc%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can specify output_log, error_log or output_logger, error_logger. So you can extend you service file to be
#!/sbin/openrc-run
command="python3"
command_args="/srv/http/tornado.py"
command_background="yes"
pidfile="/tmp/tornado.pid"
output_log="/var/log/tornado.log"
error_log="/var/log/tornado.err"
And then you will find the output inside /var/log/tornado.log. More details can be found in manpage of openrc-run (openrc-run(8)).
add a comment
|
You can specify output_log, error_log or output_logger, error_logger. So you can extend you service file to be
#!/sbin/openrc-run
command="python3"
command_args="/srv/http/tornado.py"
command_background="yes"
pidfile="/tmp/tornado.pid"
output_log="/var/log/tornado.log"
error_log="/var/log/tornado.err"
And then you will find the output inside /var/log/tornado.log. More details can be found in manpage of openrc-run (openrc-run(8)).
add a comment
|
You can specify output_log, error_log or output_logger, error_logger. So you can extend you service file to be
#!/sbin/openrc-run
command="python3"
command_args="/srv/http/tornado.py"
command_background="yes"
pidfile="/tmp/tornado.pid"
output_log="/var/log/tornado.log"
error_log="/var/log/tornado.err"
And then you will find the output inside /var/log/tornado.log. More details can be found in manpage of openrc-run (openrc-run(8)).
You can specify output_log, error_log or output_logger, error_logger. So you can extend you service file to be
#!/sbin/openrc-run
command="python3"
command_args="/srv/http/tornado.py"
command_background="yes"
pidfile="/tmp/tornado.pid"
output_log="/var/log/tornado.log"
error_log="/var/log/tornado.err"
And then you will find the output inside /var/log/tornado.log. More details can be found in manpage of openrc-run (openrc-run(8)).
answered 1 hour ago
graywolfgraywolf
2804 silver badges16 bronze badges
2804 silver badges16 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f445427%2fhow-to-view-daemon-stdout-in-openrc%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown