Changes

From SME Server
Jump to navigationJump to search
m
system/preset to system-preset
Line 479: Line 479:  
Any services not explicitly declared there will be disabled (/lib/systemd/system-preset/99-default-disable.preset). So If you want a service to run you need to declare it at the very least with :<syntaxhighlight lang="bash">
 
Any services not explicitly declared there will be disabled (/lib/systemd/system-preset/99-default-disable.preset). So If you want a service to run you need to declare it at the very least with :<syntaxhighlight lang="bash">
 
db configuration set myservice service status enabled
 
db configuration set myservice service status enabled
expand-template /etc/systemd/system-preset/49-koozali.preset
+
expand-template /etc/systemd/system/preset/49-koozali.preset
 
/etc/e-smith/events/actions/systemd-default
 
/etc/e-smith/events/actions/systemd-default
systemctl start myservice.service
+
systemcl start myservice.service
 
</syntaxhighlight>
 
</syntaxhighlight>
    
Note you can also declare a service unit name with a service name with a different name. This is in beta for the moment, as it might conflict with some other script handling the services (/sbin/e-smith/service, bootstrap-console;  controlService perl function from /usr/share/perl5/vendor_perl/esmith/util.pm) <syntaxhighlight lang="bash">
 
Note you can also declare a service unit name with a service name with a different name. This is in beta for the moment, as it might conflict with some other script handling the services (/sbin/e-smith/service, bootstrap-console;  controlService perl function from /usr/share/perl5/vendor_perl/esmith/util.pm) <syntaxhighlight lang="bash">
 
db configuration set myservice service status enabled SystemdUnit service@my.service
 
db configuration set myservice service status enabled SystemdUnit service@my.service
expand-template /etc/systemd/system/preset/49-koozali.preset
+
expand-template /etc/systemd/system-preset/49-koozali.preset
    
</syntaxhighlight>
 
</syntaxhighlight>
5

edits

Navigation menu