# The service takes the confing file as @I, which becomes the device name. [main] @type = oneshot @version = 0.0.2 @description = "Start Wireguard interface" @user = ( root ) [start] @execute = ( wg-quick up @I ) [stop] @execute = ( wg-quick down @I )