Announcement
Collapse
No announcement yet.
systemd user service limited by LVE?
Collapse
X
-
Please find more information on this topic here: https://cloudlinux.zendesk.com/hc/en...s/115004561045
-
systemd user service limited by LVE?
Hi,
1. cP users will create `systemd --user` service units (via cP plugin as well as via SSH).
A sample unit looks like this:
Code:[theuser@testcpanel ~]$ cat ~/.config/systemd/user/some.service [Unit] Description=some service After=network.target [Service] WorkingDirectory=/home/theuser ExecStart=/usr/local/bin/somebin Restart=always [Install] WantedBy=default.target
More about systemd user services in: https://www.unixsysadmin.com/systemd-user-services/
First question is: will LVE limit this kind of service to theusers defined limits?
2. If root creates a global systemd service with that runs under `theuser` (defined in unit file: `User=deepak`), will this service be limited by LVE?
3. If neither of these two methods work with LVE, what would be a recommended way for end-users to have long running processed that behave like daemons (auto-start on system boot and auto-restart on failure) and are controlled by LVE?
OS: Cloudlinux 8
ThanksTags: None
Leave a comment: