-
-
Notifications
You must be signed in to change notification settings - Fork 76
Implement enable/disable for systemd #40
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
base: master
Are you sure you want to change the base?
Conversation
coreybutler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good... there were a couple of spots with logging the commands. I didn't know if that was for debugging purposes or a "feature". I'm OK with it either way, but I thought I'd mention it in case you wanted to modify anything before I merge this.
| } | ||
| var me = this; | ||
| var cmd = 'systemctl enable '+this.label; | ||
| console.log('Running %s...', cmd); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to be here or was it for debugging?
| } | ||
| var me = this; | ||
| var cmd = this._configFilePath()+' stop'; | ||
| console.log('Running %s...', cmd); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to be here or was it for debugging?
| cmd = '/sbin/chkconfig '+this.label+' off'; | ||
| } | ||
| var me2 = me; | ||
| console.log('Running %s...', cmd); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to be here or was it for debugging?
|
The logs were intentional since it seemed inconsistent to log for some execs but not other very similar ones. |
|
Pls, merge this. |
Also includes a bit of non-invasive cleanup.