1
0
mirror of https://github.com/PurpleI2P/i2pd-snap synced 2025-02-05 11:14:34 +00:00

Added graceful shutdown and tunnel.conf reload

This commit is contained in:
l-n-s 2017-08-19 04:58:55 -04:00
parent 695dca317e
commit 57cf05f655
2 changed files with 26 additions and 2 deletions

View File

@ -15,6 +15,26 @@ distributions.</p>
([Don't have snapd installed?](https://snapcraft.io/docs/core/install))
## Usage
Managing with systemd:
systemctl status snap.i2pd.i2pd.service
systemctl stop snap.i2pd.i2pd.service
systemctl start snap.i2pd.i2pd.service
View logs:
journalctl -u snap.i2pd.i2pd
Graceful router shutdown:
sudo i2pd.graceful-shutdown
Reload config after changing `tunnels.conf` file:
sudo i2pd.reload-tunnels-conf
<p align="center">Published for :penguin: with :gift_heart: by Snapcrafters</p>
@ -29,8 +49,8 @@ upstream so [i2pd](https://github.com/PurpleI2P/i2pd) can authoritatively publis
- If you have already forked the Snapcrafter template to your account and want to create another snap, you'll need to use GitHub's [Import repository](https://github.com/new/import) feature because you can only fork a repository once.
- [x] Rename the forked Snapcrafters template repository
- [x] Update logos and references to `[Project]` and `[my-snap-name]`
- [ ] Create a snap that runs in `devmode`
- [ ] Register the snap in the store, **using the preferred upstream name**
- [x] Create a snap that runs in `devmode`
- [x] Register the snap in the store, **using the preferred upstream name**
- [x] Add a screenshot to this `README.md`
- [x] Publish the `devmode` snap in the Snap store edge channel
- [x] Add install instructions to this `README.md`

View File

@ -23,6 +23,10 @@ apps:
command: i2pd-wrapper
daemon: simple
plugs: [network,network-bind]
graceful-shutdown:
command: kill -2 `cat $SNAP_USER_DATA/.i2pd/i2pd.pid`
reload-tunnels-conf:
command: kill -1 `cat $SNAP_USER_DATA/.i2pd/i2pd.pid`
parts:
i2pd: