mirror of
https://github.com/pldubouilh/gossa
synced 2025-12-06 08:22:32 +01:00
add service example
This commit is contained in:
parent
4385249c94
commit
de632f9ab7
2 changed files with 26 additions and 1 deletions
|
|
@ -1,4 +1,20 @@
|
|||
## docker
|
||||
## run as a service
|
||||
|
||||
use the `service` file provided here to use as a systemd service.
|
||||
|
||||
```sh
|
||||
# edit service file
|
||||
|
||||
# copy over our service, and start. Notice no sudo with systemctl command !
|
||||
% mkdir -p ~/.config/systemd/user/
|
||||
% cp service ~/.config/systemd/user/gossa.service
|
||||
% systemctl --user start gossa
|
||||
|
||||
# enable at boot time
|
||||
% systemctl --user start gossa
|
||||
```
|
||||
|
||||
## run with docker
|
||||
|
||||
the master branch is automatically built and pushed to [dockerhub](https://hub.docker.com/r/pldubouilh/gossa) under `pldubouilh/gossa`.
|
||||
|
||||
|
|
|
|||
9
support/service
Normal file
9
support/service
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Gossa service for mytestfolder
|
||||
|
||||
# note: its better to use absolute paths here
|
||||
[Service]
|
||||
ExecStart=gossa /home/joe/mytestfolder
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Reference in a new issue