All Questions
7
questions
0
votes
0
answers
38
views
How to force systemd unit to log into journal instead of syslog
For some time now I'm trying to force systemd unit I created to log command output to systemd journal. It logs only to syslog. Here is my config:
$ cat /etc/systemd/system/sf-synchronize.service
[...
3
votes
2
answers
3k
views
Run systemd service only if script condion is True
I have a systemd service that writes to a LCD screen as below;
[Unit]
Description=LCD Screen
[Service]
Type=simple
User=admin
WorkingDirectory=/lcd
ExecStart=sudo /run_lcd.py
StandardOutput=syslog
...
1
vote
0
answers
328
views
Ubuntu `systemctl service` stops after some time
Ubuntu systemctl service does not work after some records. After 10000 records service status is running but data cannot sync. After service restart it's working but again after 10000 records it's ...
0
votes
0
answers
610
views
How to mount a partition's subdirectory for /var/log/journal?
Our server (Ubuntu 18) has a large partition mounted as /publish/data (its a VM, provided as IaaS so that is how it is mounted when extra disk space is requested), it is defined in fstab as follows:
/...
4
votes
2
answers
12k
views
How do I analyze journalctl logs outside of journalctl?
I need to collect some stats from my systemd log files, like how many users pass in a certain query string parameter to my service. I know I can view this information in journalctl but I can't figure ...
1
vote
1
answer
1k
views
Error starting service in Ubuntu 16.04:
I have created a systemd unit file like this:
[Unit]
Description=Menu Core Prices Update Daemon
After=network.target
[Service]
Environment="APP_CP=/opt/menu/menu-core-price-update"
Environment="...
2
votes
0
answers
791
views
Why journalctl outputs in ASCII?
I have a regular Ubuntu 16.04 server VM. My locale is set up to utf-8 everywhere:
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="...