Commit bb17ccb5 authored by Nigel Kukard's avatar Nigel Kukard

Added systemd service

parent 7fca1968
......@@ -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