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:
parent
695dca317e
commit
57cf05f655
24
README.md
24
README.md
@ -15,6 +15,26 @@ distributions.</p>
|
|||||||
|
|
||||||
([Don't have snapd installed?](https://snapcraft.io/docs/core/install))
|
([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>
|
<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.
|
- 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] Rename the forked Snapcrafters template repository
|
||||||
- [x] Update logos and references to `[Project]` and `[my-snap-name]`
|
- [x] Update logos and references to `[Project]` and `[my-snap-name]`
|
||||||
- [ ] Create a snap that runs in `devmode`
|
- [x] Create a snap that runs in `devmode`
|
||||||
- [ ] Register the snap in the store, **using the preferred upstream name**
|
- [x] Register the snap in the store, **using the preferred upstream name**
|
||||||
- [x] Add a screenshot to this `README.md`
|
- [x] Add a screenshot to this `README.md`
|
||||||
- [x] Publish the `devmode` snap in the Snap store edge channel
|
- [x] Publish the `devmode` snap in the Snap store edge channel
|
||||||
- [x] Add install instructions to this `README.md`
|
- [x] Add install instructions to this `README.md`
|
||||||
|
@ -23,6 +23,10 @@ apps:
|
|||||||
command: i2pd-wrapper
|
command: i2pd-wrapper
|
||||||
daemon: simple
|
daemon: simple
|
||||||
plugs: [network,network-bind]
|
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:
|
parts:
|
||||||
i2pd:
|
i2pd:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user