
It is better to edit a config file of a package, rather than a service file. Since the script does provide config file options, we should use them. Its probably worth adding a default/sample config file.
14 lines
227 B
Desktop File
14 lines
227 B
Desktop File
[Unit]
|
|
Description=Create AP Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/bin/create_ap --config /etc/create_ap.conf
|
|
KillSignal=SIGINT
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|