Commit 49083286 authored by Nigel Kukard's avatar Nigel Kukard

Merge branch 'nkupdates' into 'master'

Added systemd service

See merge request !2
parents af87fd93 bb17ccb5
Pipeline #4206 passed with stage
in 31 seconds
......@@ -25,9 +25,12 @@ setup(
version=VERSION,
packages=find_packages('src', exclude=['tests']),
package_dir={'': 'src'},
data_files=[
('/usr/lib/systemd/system',['systemd/opentrafficshaper-interface@.service'])
],
entry_points={
'console_scripts': [
'awit-interface-shaper=opentrafficshaper.interface:main',
'opentrafficshaper-interface=opentrafficshaper.interface:main',
],
},
)
[Unit]
Description=Setup OpenTrafficShaper interface shaping
After=sys-subsystem-net-devices-%i.device
[Service]
Type=oneshot
ExecStart=/usr/sbin/opentrafficshaper-interface %i
[Install]
WantedBy=sys-subsystem-net-devices-%i.device
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment