[opensuse-factory] startscript
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, on old opensuse systems i have used some bash scripts in /etc/init.d to start after boot before first login. but where did i have to insert a script nowdays which should be started before any login on opensuse tumbleweed? (it should NOT be user related) inside the /etc/init.d/boot.local file i read: "You should consider creating a dedicated systemd service instead." how to do this? are there somewhere some examples (step by step)? or (maybe like the old "skeleton" inside old /etc/init.d) thanks, simoN - -- B e c h e r e r GmbH Sondermaschinenbau Mauermatten Strasse 22 79183 Waldkirch Germany -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAEBAgAGBQJah9/kAAoJEOuDxDCJWQG+CsAQAIydvE2MVf59TdDc0aUlhh2y jFz3Jp0LB1XtZYWdoZTok4F9OE32ijLqcJwzoOyGIEOBehi27kcpU9pViIaQtt2Q kxQcgrk1Gk0g3UYoV39x/ySydXvRw/7weuyHrRRYhimdspp5MaLk24JtyfVDPlfl 4/k9Tmh1+ZoUSxTXMKlfyW+3pW+Da1UJbxFB2uKq3+OzYOI5i4eBQeUU72Ro8R6Z bh0DDtLnrX/e2n/JMYKywzRrDS2Z2eSemQVDWaSuypPXQBxMuK0Q9QOytKYer6OM fSzloat2CMqpFwS4xz4ApK4rg8iHcYU8pnspCNhiTMmFSQFr7EqtJfgekjn7GKjL 9c4izuM6ytiEbowfAzj48WWzS1nCoO3TyH/7HpIGqDOC5/6hLYcqbPbJN50x+Tc5 aNoDKsKnCyBB2RU7QJKyKW2Nd2YcScrbeNHbynvFPrEaVvmwgLxu3LsspK0y5L3y NXhV2pHdHQIjNfECb12p8dB6/6JmzJKc+OfrfQXr4H9T8WoOCOVHfI4rOUmSWS8m EeKbTJZFxRFBmo+IuGLYHpr1DHOZMY+V6PGBBko1AV0iux/aNvwnAA/yIkWeh4bk 1O5wMXABEiGDwTaTKl0+5QhOOv0c7XGJRGwoIyT9T/maGg0JkEVtQyFIyJyjCGK5 Rr071oBs+a8ytyPVwwXK =Nb/K -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry, wrong list. this should normally go to the opensuse not to the factory mailing list...) simoN Am 17.02.2018 um 08:55 schrieb Simon Becherer:
Hi,
on old opensuse systems i have used some bash scripts in /etc/init.d to start after boot before first login. but where did i have to insert a script nowdays which should be started before any login on opensuse tumbleweed? (it should NOT be user related) inside the /etc/init.d/boot.local file i read: "You should consider creating a dedicated systemd service instead."
how to do this? are there somewhere some examples (step by step)? or (maybe like the old "skeleton" inside old /etc/init.d)
thanks,
simoN
- -- B e c h e r e r GmbH Sondermaschinenbau Mauermatten Strasse 22 79183 Waldkirch Germany -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAEBAgAGBQJah+B6AAoJEOuDxDCJWQG+lcYP/1aOaAjjlrrvUCh5Jzh3IU7H 8SeHpWezHm0szYRUoXYbEsuxhTSJSW1MM95/eRFKc7yXOw+Va+lMTB5uEr+V3DZ7 RlHdw5KmNtG1bcHWN3U3l+tzwB866hI7y15tMthCE+pp36vomaUGJkTxuwyx1m35 ZbDicxNaf1DP6qbjojV+aB8OY4ck4t9nv0PVt92GvXgJqQsBsbnTS7TbkclojuMX gzMSX8bELbMqYBqiywebMiobP8bTiesDccJ2bmLfGjKs5maI/05nab6W8QrxXXug jPUnYzCtrO6g1BfW4pSbfMbivtubNimrsd79i+J6a7Scqdf9AcQJwXXIT4/gMHM0 ZmyOIsT1I4cjQR4sinIT9Xd/4/t1c/T2MNv98vtkwicg/xfpoQxfxdSdPSBM+djn RLpgb7c6N4C1gfh9bC5tPvMT/lJmFjnT4ICIsOkpdwSoL/rIhezBlD+2doTgOnW1 DzigVtjO6XSAE678ObutAdpOpeE5x6Jea2ABnmN5cl0wDjEjHA2+aEs24QllBBft UwF277ay0YEQ1Owf47OFGHFlmeViwD+B2ha/dXNVSy4Op5/Jbq28u9rJuaa8dXrp TlDdsewedOCmuvr5l77eNETlDaMbKblkttPZc8w9Pld3I6dHOQNba/x4EaiTkN66 NjmBjpSuxTsJ9BXHer19 =kER6 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
17.02.2018 10:55, Simon Becherer пишет:
Hi,
on old opensuse systems i have used some bash scripts in /etc/init.d to start after boot before first login. but where did i have to insert a script nowdays which should be started before any login on opensuse tumbleweed?
Order your service before systemd-user-sessions.service. This should ensure (on default configuration) that it runs before any user is able to log in.
(it should NOT be user related) inside the /etc/init.d/boot.local file i read: "You should consider creating a dedicated systemd service instead."
how to do this? are there somewhere some examples (step by step)? or (maybe like the old "skeleton" inside old /etc/init.d)
thanks,
simoN
participants (2)
-
Andrei Borzenkov
-
Simon Becherer