Arch 5.18/ MATE 桌面版
我有一个为我的面板设置值的用户服务
[Unit]
Description=Set values for panel widgets
After=mnt-ram
After=sys-subsystem-net-devices-eno1.device
[Service]
ExecStart=/home/stephen/bin/panel-setup.sh
Type=oneshot
RemainAfterExit=True
[Install]
WantedBy=default.target
两者mnt-ram
和都sys-subsystem-net-devices-enp0s8.device
显示为活跃于systemctl --user list-units
。
启动时日志报告
systemd[669]: /home/stephen/.config/systemd/user/panel-setup.service:3: Failed to add dependency on mnt-ram, ignoring: Invalid argument
但是,在桌面加载后,我可以毫无错误地发出预期效果:systemctl user restart panel-setup