服务开机启动

1、修改 /etc/rc.d/rc.local 文件 添加执行命令

su - {{ msspoper_user }} /home/{{ msspoper_user }}/{{ dest_dir }}/bin/{{ sh_file.stdout }} start

2、systemctl  设置启动服务

posted @ 2021-06-30 16:27  菜鸟骑士  阅读(32)  评论(0编辑  收藏  举报