User=psadmin
WantedBy=multi-user.target # Similar to runlevel 5
我已经在visudo中添加了用户psadmin来运行systemctl这对于使用sudo systemctl start ServerName.service启动服务非常有效。然后,脚本重新加载systemctl守护进程"sudo systemctldaemon-reload“。当脚本使用systemctl enable Ser
为了在某些磁盘上生成度量,我设置了一个systemd.timer + systemd.service日记写了像这样的多行-- Subject: Unit succeeded-- Support: http://www.ubuntu.com/support-- The unit personal.service
See "systemctl status mariadb.service" and "journalctl -xe" for details. systemctl status mariadb.service-eq 0 ]
Process: 690 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code