archlinux/manjaro ss开机自启动[linux]

在/usr/lib/systemd/system/中加入***.service文件

[Unit]
Description=AutoExec
[Service]
ExecStart=/root/runstart.sh
[Install]
WantedBy=multi-user.target

在/root/中创建runstart.sh内容为

#!/bin/sh
nohup sslocal -c /etc/***.json -d start &
sleep 1000h 

然后输入命令

systemctl enable ***

可以查看状态

systemctl status ***

 

posted @ 2018-01-01 19:27  Meternal  阅读(3590)  评论(0)    收藏  举报