[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: systemd .service file conversion



2013/5/23 Helmut Grohne <helmut@subdivi.de>:
> * stdout/stderr to syslog redirection
>    This is possibly implementable, but needs more than a line of shell.


In Solaris SMF each service has its own log file with SMF messages
*and* all stdout/stderr


pashev@bok:~$ find /var/log/svc/
/var/log/svc/
/var/log/svc/network-initial:default.log
/var/log/svc/svc.startd.log
/var/log/svc/milestone-single-user:default.log
/var/log/svc/system-svc-global:default.log
/var/log/svc/network-service:default.log
/var/log/svc/milestone-name-services:default.log
/var/log/svc/system-console-login:vt4.log
/var/log/svc/system-console-login:vt3.log
/var/log/svc/system-sysevent:default.log
...

pashev@bok:~$ tail /var/log/svc/system-cron:default.log
[ May 13 03:19:21 Method "start" exited with status 0. ]
[ May 14 10:12:38 Enabled. ]
[ May 14 10:12:49 Executing start method ("/lib/svc/method/cron"). ]
[ May 14 10:12:50 Method "start" exited with status 0. ]
[ May 15 15:11:06 Enabled. ]
[ May 15 15:11:18 Executing start method ("/lib/svc/method/cron"). ]
[ May 15 15:11:18 Method "start" exited with status 0. ]
[ May 15 15:15:22 Enabled. ]
[ May 15 15:15:33 Executing start method ("/lib/svc/method/cron"). ]
[ May 15 15:15:34 Method "start" exited with status 0. ]


Reply to: