Sorry, but unfortunately I don't know systemd that well.

I have an old snapshot of Debian (from July 2014) and the status command works fine. I'm using python to code. I know that systemctl can throw output acording to journal formatting type:

systemctl status my_service -o cat

The best documentation of systemclt I've found is:
http://www.freedesktop.org/software/systemd/man/systemctl.html

But maybe it has something to do with on how the prinf is handling the stdout. I haven't been programming in C, but maybe you can try using fprintf(stdout, "Hello!");

I have no ideia if it is going to work, but is worth trying.


On 13-01-2015 13:56, [email protected] wrote:

Yeah, I’ve seen that elsewhere before but it still doesn’t work:

|root@anna-bone:~/cs_xmlrpc/deb$ systemctl start cs_xmlrpc.service
root@anna-bone:~/cs_xmlrpc/deb$ systemctl status cs_xmlrpc.service
cs_xmlrpc.service - CS XMLRPC Server
           Loaded: loaded (/lib/systemd/system/cs_xmlrpc.service; enabled)
           Active: active (running) since Tue,13  Jan2015  15:52:36  +0000;8s 
ago
         Main PID:3565  (cs_xmlrpc)
           CGroup: name=systemd:/system/cs_xmlrpc.service
                   └3565  /usr/local/bin/cs_xmlrpc8888

root@anna-bone:~/cs_xmlrpc/deb$ systemctl stop cs_xmlrpc.service
root@anna-bone:~/cs_xmlrpc/deb$ systemctl status cs_xmlrpc.service
cs_xmlrpc.service - CS XMLRPC Server
           Loaded: loaded (/lib/systemd/system/cs_xmlrpc.service; enabled)
           Active: inactive (dead) since Tue,13  Jan2015  15:54:10  +0000;1s ago
          Process:3565  ExecStart=/usr/local/bin/cs_xmlrpc8888  (code=killed, 
signal=TERM)
           CGroup: name=systemd:/system/cs_xmlrpc.service
|

If I run the daemon manually you can see what it should output:

|root@anna-bone:~/cs_xmlrpc/deb$ ../cs_xmlrpc
Using config file /etc/cs_xmlrpc.d/cs_xmlrpc.conf
Opened /dev/i2c-1  with i2c address0x40
Global ID:0x03e5
Running XML-RPC server at http://anna-bone:8888
|

This is just to stdout, I’m not doing anything fancy here (just printfs)…

Do you think I just have to update to one of the newer debian snapshots?

-Devin


On Tuesday, January 13, 2015 at 10:46:05 AM UTC-5, Miguel Aveiro wrote:

    Maybe you can use "status". It's not all the output, but it can help.

    systemctl status your_service


    For more information:
    https://fedoraproject.org/wiki/Systemd
    <https://fedoraproject.org/wiki/Systemd>


    Miguel Aveiro

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
For more options, visit http://beagleboard.org/discuss
--- You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to