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
PowerShell core on Linux - Get-Service should mimic linux "service" command. #3582
Comments
Except that |
I agree as we start using powershell for managing azure deployments which may or may not be windows |
Hi any progress :-)
Even Raspbian have systemd
|
Hi, any new progress with implementing Start-Service for Linux? I would really appreciate it. |
6 years later and no change on this? |
There is the nxtools module that has wrappers for common Linux utilities. |
@joeyaiello, almost all distributions nowadays use Proponents of SysVInit etcetera could request or implement their own if it had any kind of extension system built in. Otherwise, they could simply call the binaries without utilizing PowerShell's obfuscation. My expectation is that very few distributions which don't utilize Don't allow perfection to be the enemy of good. |
@MaximoTrinidad, why do you propose |
Okay - I thought there was something wrong with my PowerShell install onto Debian 12 - so it is a bit reassuring to see that I'm not the only person struggling with the "Get-Service" command. If I'm understanding this correctly, there is no workaround for this, aside from utilizing nxtools? I ask, because even after installing it, there was no change when attempting to run command. (I'm new to learning how to work with PowerShell - so thanks for your patience!) |
Steps to reproduce
Type the cmdlet: Get-Service ssh
Or, Stop-Service ssh
Or, Start-Service ssh
Expected behavior
PowerShell => Linux
Get-Service ssh => service --status-all
Start-Service ssh => service ssh start
Stop-Service ssh => service ssh stop
Actual behavior
Any of the three cmdlets will give the following errors:
xxx-service : The term 'xxx-service' is not recognized as the name of a cmdlet, function, script file, or operable
program.
Environment data
Linux Ubuntu Desktop 16.04.2
The text was updated successfully, but these errors were encountered: