Skip to content

fix debian sysv init script#3

Open
mikhirev wants to merge 1 commit intoayufan-research:masterfrom
mikhirev:mikhirev-debian-sysvinit
Open

fix debian sysv init script#3
mikhirev wants to merge 1 commit intoayufan-research:masterfrom
mikhirev:mikhirev-debian-sysvinit

Conversation

@mikhirev
Copy link

Hi!

I figured out that on Debian with sysvinit the "status" command does hot work. I fixed this issue and also changed the shebang to #!/bin/sh for consistency with native Debian init scripts.

  • use #!/bin/sh shebang
  • dont't check for root (not needed for status command, not checked in native Debian init scripts)
  • fix status_of_proc arguments to get status command working (define the $DAEMON variable)

- use "#!/bin/sh" shebang
- dont't check for root (not needed for "status" command)
- fix status_of_proc arguments to get "status" command working
@chrros95 chrros95 mentioned this pull request Oct 6, 2018
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

Successfully merging this pull request may close these issues.

1 participant