记一次virtualbox debian虚拟机设置共享文件夹,开机第一次无法启动meeyi-smarttalk服务问题
meeyi-smarttalk.service设置如下[Unit]
Description=meeyi-smarttalk
Requires=vboxadd-service.service
After=network.target vboxadd-service.service
[Service]
Type=simple
Restart=on-failure
User=root
Group=root
ExecStart=/bin/sh /dockerShare/run.sh
[Install]
WantedBy=multi-user.target
查询资源如下资源
https://mikespook.com/2021/03/how-to-start-nginx-after-shared-folder-mounted-on-virtualbox/
https://blog.csdn.net/lonnng2004/article/details/88964763
包括always(总是重启)、no 、on-success、on-failure、on-abnormal、on-abort、on-watchdog
对于守护进程,推荐设为on-failure。对于那些允许发生错误退出的服务,可以设为on-abnormal
网友评论