Skip to content

Commit

Permalink
misc_systemd_units: Remove obsolete StandardOutput=syslog
Browse files Browse the repository at this point in the history
On Ubuntu 20.10 with systemd 246, systemd warnings like below.

    Apr 23 08:57:24 flughafenberlinbrandenburgwillybrandt systemd[1]: /etc/systemd/system/mxvlan.service:10: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.

So remove these obsolete entries, which are also obsolete in systemd 242
used in MarIuX.

systemd 246 introduced the warning:

>        * StandardError= and StandardOutput= in unit files no longer support
>          the "syslog" and "syslog-console" switches. They were long removed
>          from the documentation, but will now result in warnings when used,
>          and be converted to "journal" and "journal+console" automatically.
  • Loading branch information
pmenzel authored and donald committed Jan 20, 2023
1 parent 8ed0e29 commit ec120bd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion misc_systemd_units/getcams.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ Description=mxstartup baucamhttpd
User=zmuser
WorkingDirectory=/project/baucam
ExecStart=/project/baucam/getcam.pl
StandardOutput=syslog
Restart=always
RestartSec=10s
1 change: 0 additions & 1 deletion misc_systemd_units/mxvlan.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Before=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
StandardOutput=syslog
ExecStart=/usr/sbin/mxvlanctl start
ExecStop=/usr/sbin/mxvlanctl stop
ExecReload=/usr/sbin/mxvlanctl restart
Expand Down
1 change: 0 additions & 1 deletion misc_systemd_units/network.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ ExecStart=/sbin/ip addr add ${MX_IPADDR}/20 broadcast 141.14.31.255 dev ${MX_NET
ExecStart=/sbin/ip link set up dev ${MX_NETDEV}
ExecStart=/sbin/ip route add default via 141.14.16.128
ExecStop=/sbin/ip addr del ${MX_IPADDR}/20 dev ${MX_NETDEV}
StandardOutput=syslog

[Install]
WantedBy=network.target

0 comments on commit ec120bd

Please sign in to comment.