centos查看开机自启项

#查看开机自启

systemctl list-unit-files  |  grep  gitlab
gitlab-runsvdir.service                       enabled

#删除

 systemctl disable gitlab-runsvdir.service
Removed symlink /etc/systemd/system/multi-user.target.wants/gitlab-runsvdir.service.

#添加

systemctl enable gitlab-runsvdir.service
Created symlink from /etc/systemd/system/multi-user.target.wants/gitlab-runsvdir.service to /usr/lib/systemd/system/gitlab-runsvdir.service