diff --git a/Ecology/LubanCat1/LubanCat1_安装_Weston.md b/Ecology/LubanCat1/LubanCat1_安装_Weston.md index 2d1b6a8..3d1e414 100644 --- a/Ecology/LubanCat1/LubanCat1_安装_Weston.md +++ b/Ecology/LubanCat1/LubanCat1_安装_Weston.md @@ -104,3 +104,27 @@ sudo ninja -C build/ install ```bash weston --tty=2 ``` + +systemd service(/usr/lib/systemd/system/weston.service)如下: + +```service +[Unit] +Description=Weston +# After=syslog.target +# After=network.target +# After=multi-user.target +# After=graphical.target +After=plymouth-quit-wait.service +# After=systemd-logind.service + +[Service] +RestartSec=2s +Type=simple +User=root +Group=root +ExecStart=weston-launch --tty=/dev/tty2 --user=root +Restart=always + +[Install] +WantedBy=multi-user.target +```