神末shenmo
deepin
2022-05-28 06:33 Spark-App
Q&A Team
写一个service可以
https://gitee.com/deepin-community-store/spark-store/blob/master/pkg/usr/lib/systemd/system/spark-update-notifier.service
参考这个
或者你写个autostart
用echo "密码" | sudo -S xxxxxx写到exec=后面
desktop可以参考 https://gitee.com/deepin-community-store/spark-store/blob/master/tool/update-upgrade/autostart/spark-update-notifier.desktop
位置在~/.config/autostart或者/etc/xdg/autostart/时启动会执行
Reply Like 1 View the author


中文 
今天困扰了我一整天也没有弄明白,还请各路大神帮我一下,谢谢!
我用uwsgi+nginx+django做了一个小程序,可以实现局域网内自由访问,但每次使用的时候就得输入
uwsgi --ini /home/mysite/myapp.ini
sudo /home/mysite/nginx/sbin/./nginx
这两条语句,太麻烦了,上网找了N圈,在/etc/init.d/放入.sh文件就能自动执行,用chkconfig指定执行方式:
chkconfig -add mysite.sh
chkconfig -level 2345 mysite.sh on
输入完毕,sudo reboot等着重启后,以前啥样重启后还是啥样,愁死了,望各路大神帮我一下,万分感谢,最好说的详细一些