Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 4664  / 2 Years ago, wed, february 23, 2022, 5:51:09

I have a script that starts on desktop-session-start. The first person who logs in graphically after a boot will have this script called. I want it called once, not every time a person logs in. How do I make a script perform just once?



# one time script

start on desktop-session-start
stop on somebodystopme

script
...
end script

More From » upstart

 Answers
0

Use post-start script section instead of script section. It will leave the job as started/running state and it will not be re-run.


[#40199] Wednesday, February 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nuehan

Total Points: 253
Total Questions: 109
Total Answers: 120

Location: Singapore
Member since Sat, Jul 25, 2020
4 Years ago
;