mirror of
https://github.com/NotAShelf/systemyml.git
synced 2024-11-26 15:16:48 +00:00
17 lines
395 B
SYSTEMD
17 lines
395 B
SYSTEMD
|
name: my_service
|
||
|
install:
|
||
|
WantedBy: multi-user.target
|
||
|
unit:
|
||
|
Documentation: https://example.com/my-service-doc
|
||
|
After: network.target
|
||
|
Description: Example service
|
||
|
Wants: network-online.target
|
||
|
service:
|
||
|
WorkingDirectory: /path/to/working/directory
|
||
|
ExecStart: /usr/bin/my_service_executable arg1 arg2
|
||
|
Restart: always
|
||
|
User: my_user
|
||
|
Type: simple
|
||
|
Group: my_group
|
||
|
environment: null
|