Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logagent-setup fails to create init.d script #64

Closed
ashiddo11 opened this issue Apr 20, 2017 · 6 comments
Closed

Logagent-setup fails to create init.d script #64

ashiddo11 opened this issue Apr 20, 2017 · 6 comments

Comments

@ashiddo11
Copy link
Contributor

logagent-setup script should create an init.d script but it doesn't when using debian weezy. Currently it tries to create a systemd file and then fails to start the service.

@megastef
Copy link
Contributor

Right, there is currently no support for init.d - only upstart, systemd and launchd (Mac OS X).

@megastef
Copy link
Contributor

@ashiddo11 could you contribute a function for the init.d script generation?
https://github.com/sematext/logagent-js/blob/master/bin/logagent-setup.sh

@megastef
Copy link
Contributor

megastef commented Apr 20, 2017

I wonder why systemd file is created. So systemctl is installed, but systemd is not used to start services?

https://github.com/sematext/logagent-js/blob/master/bin/logagent-setup.sh#L154
What is the output of sudo systemctl on your system?

@megastef
Copy link
Contributor

Did you run the setup as super user? It needs root permissions.

@ashiddo11
Copy link
Contributor Author

Yes I ran it as root.

$ sudo systemctl
-bash: systemctl: command not found

I'll create a function for the init.d script and create a PR when I get a chance

ashiddo11 added a commit to ashiddo11/logagent-js that referenced this issue Apr 27, 2017
Create init.d script to support debian wheezy
@ashiddo11
Copy link
Contributor Author

Created PR #66

megastef added a commit that referenced this issue Apr 27, 2017
Re Issue #64 Logagent-setup fails to create init.d script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants