Walt-server depends on some system services, that it has to configure. Walt-server may have its own service instances, configured to work only on the walt-net interface, to reduce collisions with system services.
[ ] walt-server-dhcpd.service (done, see c50ea8bd653d2e167084262e2a25ededa613f43d)
walt-server.serviceRequires=<this service>
[x] walt-server-httpd.service (done, see e89ce7c4a6e76f1e649e8f439729bb791b26bf15)
[ ] Service LLDP
Create this service (which should read/write all necessary files from /var/lib/walt and /run/walt)
This service Requires=walt-server-netconfig.service & After=walt-server-netconfig.service
walt-server.serviceRequires=<this service>
[ ] Service SNMP (daemon). This service's configuration file requires the server's IP address to listen only on this interface, so it should be auto-generated, in the same way as dhcpd.
Create this service (which should read/write all necessary files from /var/lib/walt and /run/walt)
From walt-server's code, write the config file (with server's IP address embedded) and reload-or-restart this service.
This service Requires=walt-server-netconfig.service & After=walt-server-netconfig.service
walt-server.serviceRequires=<this service>
[ ] Service PTP
Create this service (which should read/write all necessary files from /var/lib/walt and /run/walt)
Move arguments recommended by the doc in a dedicated file. (We already use ptpengine:interface=walt-net to specify the interface)
This service Requires=walt-server-netconfig.service & After=walt-server-netconfig.service
walt-server.serviceWants=<this service>
[ ] Service NTP. We do not need to change the configuration file of this service. Two options, either use the system service (and suppose it works for walt-net) or use a dedicated service.
In the second case, create this service (which should read/write all necessary files from /var/lib/walt and /run/walt)
This service Requires=walt-server-netconfig.service & After=walt-server-netconfig.service
walt-server.serviceWants=<this service>
[ ] Service TFTP. This service's configuration file requires the server's IP address to listen only on this interface, so it should be auto-generated, in the same way as dhcpd.
Create this service (which should read/write all necessary files from /var/lib/walt and /run/walt)
From walt-server's code, write the config file (with server's IP address embedded) and reload-or-restart this service.
Use --address to specify listen address
Change --map-file, which should point to a file in /var/lib/walt
This service Requires=walt-server-netconfig.service & After=walt-server-netconfig.service
walt-server.serviceRequires=<this service>
[ ] Service NFS
Commit 45686a61cebf6a785e64d97864b33b3de2bf9b07 already separates the WalT's configuration file (/etc/exports.d/walt.exports) from the main configuration files (/etc/exports). Not sure it is needed (and even possible) to have two instances of this service.
walt-server.serviceRequires=<this service>
[ ] Service walt-vpn-server.service
This service is enabled by default, and WantedBy=walt-server-netconfig.service
[ ] Service postgresql.service. Should bot have to be modified, and the system-wide install may be used.
Walt-server depends on some system services, that it has to configure. Walt-server may have its own service instances, configured to work only on the walt-net interface, to reduce collisions with system services.
walt-server.service
Requires=<this service>
/var/lib/walt
and/run/walt
)-I
to specify walt-net interface.Requires=walt-server-netconfig.service
&After=walt-server-netconfig.service
walt-server.service
Requires=<this service>
/var/lib/walt
and/run/walt
)Requires=walt-server-netconfig.service
&After=walt-server-netconfig.service
walt-server.service
Requires=<this service>
/var/lib/walt
and/run/walt
)ptpengine:interface=walt-net
to specify the interface)Requires=walt-server-netconfig.service
&After=walt-server-netconfig.service
walt-server.service
Wants=<this service>
/var/lib/walt
and/run/walt
)Requires=walt-server-netconfig.service
&After=walt-server-netconfig.service
walt-server.service
Wants=<this service>
/var/lib/walt
and/run/walt
)--address
to specify listen address--map-file
, which should point to a file in/var/lib/walt
Requires=walt-server-netconfig.service
&After=walt-server-netconfig.service
walt-server.service
Requires=<this service>
/etc/exports.d/walt.exports
) from the main configuration files (/etc/exports
). Not sure it is needed (and even possible) to have two instances of this service.walt-server.service
Requires=<this service>
walt-vpn-server.service
WantedBy=walt-server-netconfig.service
postgresql.service
. Should bot have to be modified, and the system-wide install may be used.walt-server.service
Requires=<this service>
&After=<this service>