systemd and StandardOutput not going to a file

suvayu ali fatkasuvayu+linux at gmail.com
Wed Mar 14 20:00:39 UTC 2012


On Wed, Mar 14, 2012 at 20:13, Martín Marqués <martin.marques at gmail.com> wrote:
> Can someone tell me why one can't configure StandardOutput in systemd
> to go to a file?
>

I could.

$ systemctl status sshd.service > /tmp/bla
$ cat /tmp/bla
sshd.service - OpenSSH server daemon
          Loaded: loaded (/lib/systemd/system/sshd.service; enabled)
          Active: active (running) since Sun, 11 Mar 2012 17:51:28
+0100; 3 days ago
        Main PID: 1101 (sshd)
          CGroup: name=systemd:/system/sshd.service
                  └ 1101 /usr/sbin/sshd -D

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list