mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-03 13:33:26 +00:00
update nextepc-pgwd.service for systemd-networkd (#16)
This commit is contained in:
1
debian/control
vendored
1
debian/control
vendored
@@ -68,6 +68,7 @@ Architecture: any
|
|||||||
Multi-Arch: same
|
Multi-Arch: same
|
||||||
Depends: ${shlibs:Depends},
|
Depends: ${shlibs:Depends},
|
||||||
${misc:Depends},
|
${misc:Depends},
|
||||||
|
udev,
|
||||||
nextepc-core (= ${binary:Version})
|
nextepc-core (= ${binary:Version})
|
||||||
Description: Open Source based 3GPP EPC PGW (Packet Data Network Gateway)
|
Description: Open Source based 3GPP EPC PGW (Packet Data Network Gateway)
|
||||||
NextEPC is a C-language Open Source implementation of the 3GPP Evolved
|
NextEPC is a C-language Open Source implementation of the 3GPP Evolved
|
||||||
|
|||||||
48
debian/nextepc-pgw.postinst
vendored
Normal file
48
debian/nextepc-pgw.postinst
vendored
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# postinst script for nextepc
|
||||||
|
#
|
||||||
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# summary of how this script can be called:
|
||||||
|
# * <postinst> `configure' <most-recently-configured-version>
|
||||||
|
# * <old-postinst> `abort-upgrade' <new version>
|
||||||
|
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
|
||||||
|
# <new-version>
|
||||||
|
# * <postinst> `abort-remove'
|
||||||
|
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
|
||||||
|
# <failed-install-package> <version> `removing'
|
||||||
|
# <conflicting-package> <version>
|
||||||
|
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||||
|
# the debian-policy package
|
||||||
|
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
configure)
|
||||||
|
if test "x`sysctl -n net.ipv6.conf.all.disable_ipv6`" = x1; then
|
||||||
|
echo "net.ipv6.conf.all.disable_ipv6=0" >> /etc/sysctl.d/30-nextepc.conf
|
||||||
|
sysctl -p /etc/sysctl.d/30-nextepc.conf
|
||||||
|
fi
|
||||||
|
if [ ! -L /etc/systemd/system/multi-user.target.wants/systemd-networkd.service ]; then
|
||||||
|
systemctl enable systemd-networkd
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "postinst called with unknown argument \`$1'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# dh_installdeb will replace this with shell code automatically
|
||||||
|
# generated by other debhelper scripts.
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
46
debian/nextepc-pgw.postrm
vendored
Normal file
46
debian/nextepc-pgw.postrm
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# postrm script for nextepc-core
|
||||||
|
#
|
||||||
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# summary of how this script can be called:
|
||||||
|
# * <postrm> `remove'
|
||||||
|
# * <postrm> `purge'
|
||||||
|
# * <old-postrm> `upgrade' <new-version>
|
||||||
|
# * <new-postrm> `failed-upgrade' <old-version>
|
||||||
|
# * <new-postrm> `abort-install'
|
||||||
|
# * <new-postrm> `abort-install' <old-version>
|
||||||
|
# * <new-postrm> `abort-upgrade' <old-version>
|
||||||
|
# * <disappearer's-postrm> `disappear' <overwriter>
|
||||||
|
# <overwriter-version>
|
||||||
|
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||||
|
# the debian-policy package
|
||||||
|
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
purge)
|
||||||
|
if grep "pgwtun" /proc/net/dev > /dev/null; then
|
||||||
|
ip tuntap del name pgwtun mode tun
|
||||||
|
fi
|
||||||
|
rm -f /etc/sysctl.d/30-nextepc.conf
|
||||||
|
;;
|
||||||
|
|
||||||
|
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "postrm called with unknown argument \`$1'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# dh_installdeb will replace this with shell code automatically
|
||||||
|
# generated by other debhelper scripts.
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
### For reference, see `nextepc.conf`
|
### For reference, see `nextepc.conf`
|
||||||
|
|
||||||
db_uri: mongodb://localhost/nextepc
|
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
file: @LOCALSTATE_DIR@/log/nextepc/mme.log
|
file: @LOCALSTATE_DIR@/log/nextepc/mme.log
|
||||||
trace:
|
trace:
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
### For reference, see `nextepc.conf`
|
### For reference, see `nextepc.conf`
|
||||||
|
|
||||||
db_uri: mongodb://localhost/nextepc
|
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
file: @LOCALSTATE_DIR@/log/nextepc/pgw.log
|
file: @LOCALSTATE_DIR@/log/nextepc/pgw.log
|
||||||
trace:
|
trace:
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=NextEPC P-GW Daemon
|
Description=NextEPC P-GW Daemon
|
||||||
|
Requires=systemd-udevd.service
|
||||||
|
Requires=systemd-networkd.service
|
||||||
After=networking.service
|
After=networking.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|||||||
Reference in New Issue
Block a user