Build a Debian package
The first version `0.1.0-rc.0` and metadata for `cargo-deb` is now in `Cargo.toml`. For that, the service file as well as the config file were moved. For a improved systemd service file the `User` and `Group` is now set via variables and the log level is now set to `info`. In the previous version of the service file the parameter for `ExecStart` was missing which prevented this file from working. The dependencies in `Cargo.lock` were updated.
This commit is contained in:
parent
17778cf8b4
commit
d552e29e8f
4 changed files with 28 additions and 16 deletions
|
@ -1,16 +0,0 @@
|
|||
[Unit]
|
||||
Description=Webhookey
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
RestartSec=2s
|
||||
Type=simple
|
||||
User=webhookey
|
||||
Group=webhookey
|
||||
Restart=always
|
||||
Environment=ROCKET_ADDRESS=127.0.0.1 ROCKET_PORT=8000
|
||||
# Environment=ROCKET_ADDRESS=127.0.0.1 ROCKET_PORT=8000 ROCKET_TLS={certs="/path/to/certs.pem",key="/path/to/key.pem"}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue