Closed schlamar closed 11 years ago
The file actually exists and sudo /etc/init.d/gitlab start
just works...
Platform Ubuntu or CentOS ?
Ubuntu
vagrant destroy and vagrant up, but is not an error.
Doesn't help. BTW, creating the service and looks good:
[2013-09-06T07:04:01+00:00] INFO: template[/etc/init.d/gitlab] created file /etc/init.d/gitlab
[2013-09-06T07:04:01+00:00] INFO: template[/etc/init.d/gitlab] updated file contents /etc/init.d/gitlab
[2013-09-06T07:04:01+00:00] INFO: template[/etc/init.d/gitlab] mode changed to 755
[2013-09-06T07:04:01+00:00] INFO: service[gitlab] enabled
[2013-09-06T07:04:01+00:00] INFO: file[/home/git/.gitlab_start] created file /home/git/.gitlab_start
[2013-09-06T07:04:01+00:00] INFO: file[/home/git/.gitlab_start] owner changed to 1000
[2013-09-06T07:04:01+00:00] INFO: file[/home/git/.gitlab_start] group changed to 1001
...
[2013-09-06T07:04:07+00:00] INFO: template[/etc/postfix/main.cf] sending restart action to service[postfix] (delayed)
[2013-09-06T07:04:10+00:00] INFO: service[postfix] restarted
[2013-09-06T07:04:10+00:00] INFO: file[/home/git/.gitlab_start] sending start action to service[gitlab] (delayed)
What's the reason for .gitlab_start
file anyway?
vagrant@vm-gitlab:~$ ls /etc/init.d/gitlab
/etc/init.d/gitlab
vagrant@vm-gitlab:~$ service gitlab start
env: /etc/init.d/gitlab: No such file or directory
Oh man. initd.erb has Windows line endings. http://www.linuxquestions.org/questions/ubuntu-63/error-env-etc-init-d-snortd-no-such-file-or-directory-trying-to-start-service-922358/
Looks like some tool set git autocrlf to true. Sorry for the noise.