microsoft / PowerShell-DSC-for-Linux

PowerShell Desired State Configuration - for Linux
Other
339 stars 132 forks source link

Question : Using nxService resource we can reload systemd services ? #824

Open vlahane opened 3 years ago

vlahane commented 3 years ago

Hello Team, Does this possible if I have existing httpd service on linux instead of doing like below instead of using nxScript systemctl reload httpd.service

Can we do like below?

    #Apache Service
    nxService ApacheService {
        Name = 'httpd'
        State = 'reload'
        Enabled = $true
        Controller = 'systemd'
    }