Open xinxin8816 opened 4 years ago
cat > /etc/systemd/system/mtp.service <<EOF [Unit] Description=mtp After=network.target [Service] Type=forking ExecStart=/bin/bash /home/mtproxy/mtproxy.sh start ExecReload=/bin/bash /home/mtproxy/mtproxy.sh restart ExecStop=/bin/bash /home/mtproxy/mtproxy.sh stop [Install] WantedBy=multi-user.target EOF
systemctl start mtp systemctl enable mtp
哥们你开机自启有用吗我搞了一个通宵 开机起不来啊。。只能手动 延迟 什么的都试过了
创建系统服务
启动服务并设置开机自启