aboutsummaryrefslogtreecommitdiffstats
path: root/udp514-journal.service
blob: 68ebcbb70ce3cc43ee1cf33f6c7071a26574fce1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# (C) 2018-2024 by Christian Hesse <mail@eworm.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

[Unit]
Description=Forward syslog from network (udp/514) to journal
Requires=systemd-journald.socket
After=network.target

[Service]
Type=notify
Restart=always
ExecStart=/usr/bin/udp514-journal
DynamicUser=on
AmbientCapabilities=CAP_NET_BIND_SERVICE
ProtectSystem=full
ProtectHome=on
PrivateDevices=on
NoNewPrivileges=on

[Install]
WantedBy=multi-user.target