You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot find any example on how to enable/disable units. Can someone elaborate on how this can be done using this lib?
I can see there is a function called EnableUnitFiles but I am not sure how it should be used!
The text was updated successfully, but these errors were encountered:
from pystemd.systemd1 import Manager
with Manager() as manager:
manager.Manager.EnableUnitFiles([b'/etc/systemd/system/service_name.service'], True, True)
I cannot find any example on how to enable/disable units. Can someone elaborate on how this can be done using this lib?
I can see there is a function called
EnableUnitFiles
but I am not sure how it should be used!The text was updated successfully, but these errors were encountered: