Score:0

why does systemd starts two processes?

in flag

I have set up my service to be a very simple one.

[Unit]
Description=the main trigger

After=mnt-winshare.mount

[Service]
ExecStart=/usr/local/bin/bsci-trigger-main

[Install]
WantedBy=multi-user.target

As far as I can see, the service does what it is supposed to do:
Keep alive in the background and wait for file changes to trigger any custom action.

But I fell puzzled about the fact that with this method two processes are running:

$ps ax|grep bsci-trigger-main|grep -v grep
   1159 ?        Ss     0:00 /bin/bash /usr/local/bin/bsci-trigger-main
   1188 ?        S      0:00 /bin/bash /usr/local/bin/bsci-trigger-main

Could someone please explain this to me? Is this a normal behavior or is my script badly coded and (for reasons to be investigated further) starting itself twice?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.