1
0
mirror of https://github.com/PurpleI2P/i2pd-snap synced 2025-02-10 13:44:18 +00:00

Fixed wrapper and renamed app to i2pd.daemon

This commit is contained in:
l-n-s 2017-08-19 15:52:52 -04:00
parent 57cf05f655
commit b87c8dbc12
3 changed files with 12 additions and 12 deletions

View File

@ -19,13 +19,13 @@ distributions.</p>
Managing with systemd:
systemctl status snap.i2pd.i2pd.service
systemctl stop snap.i2pd.i2pd.service
systemctl start snap.i2pd.i2pd.service
systemctl status snap.i2pd.daemon.service
systemctl stop snap.i2pd.daemon.service
systemctl start snap.i2pd.daemon.service
View logs:
journalctl -u snap.i2pd.i2pd
journalctl -u snap.i2pd.daemon
Graceful router shutdown:

View File

@ -1,9 +1,9 @@
#!/bin/sh
if [ ! -d "$SNAP_USER_DATA/.i2pd" ]; then
mkdir $SNAP_USER_DATA/.i2pd/
cp -R $SNAP/certificates $SNAP_USER_DATA/.i2pd/
cp -R $SNAP/i2pd.conf $SNAP_USER_DATA/.i2pd/
if [ ! -d "$SNAP_DATA/datadir" ]; then
mkdir $SNAP_DATA/datadir/
cp -R $SNAP/certificates $SNAP_DATA/datadir/
cp -R $SNAP/i2pd.conf $SNAP_DATA/datadir/
fi
exec "$SNAP/bin/i2pd" "$@"
exec "$SNAP/bin/i2pd" --datadir=$SNAP_DATA/datadir/

View File

@ -19,14 +19,14 @@ grade: devel
confinement: strict
apps:
i2pd:
daemon:
command: i2pd-wrapper
daemon: simple
plugs: [network,network-bind]
graceful-shutdown:
command: kill -2 `cat $SNAP_USER_DATA/.i2pd/i2pd.pid`
command: kill -2 `cat $SNAP_DATA/datadir/i2pd.pid`
reload-tunnels-conf:
command: kill -1 `cat $SNAP_USER_DATA/.i2pd/i2pd.pid`
command: kill -1 `cat $SNAP_DATA/datadir/i2pd.pid`
parts:
i2pd: