jer*_*icz 2 syslog services restore paste 20.04
在向文件夹添加新服务时/etc/systemd/system/,我不小心编辑了该syslog.service文件并丢失了其原始内容。
有人可以帮我将原始文件内容粘贴到这里吗?
或者有人知道如何恢复吗?我找到了这个答案,但我不知道应该重新安装哪个包,并且无法通过https://packages.ubuntu.com上的文件找到它。
非常感谢您的帮助!
我的系统是20.04.4服务器。不知道桌面是否一样:
$ cat /etc/systemd/system/syslog.service
[Unit]
Description=System Logging Service
Requires=syslog.socket
Documentation=man:rsyslogd(8)
Documentation=https://www.rsyslog.com/doc/
[Service]
Type=notify
ExecStart=/usr/sbin/rsyslogd -n -iNONE
StandardOutput=null
Restart=on-failure
# Increase the default a bit in order to allow many simultaneous
# files to be monitored, we might need a lot of fds.
LimitNOFILE=16384
[Install]
WantedBy=multi-user.target
Alias=syslog.service
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
195 次 |
| 最近记录: |