Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Execution of the command after reboot (systemd)

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
hobit
Posts: 9
Joined: 2018-06-28 21:09

Re: Execution of the command after reboot (systemd)

#16 Post by hobit »

Head_on_a_Stick wrote: Check the output of

Code: Select all

netstat -lnp | grep 69
as per the solution in my linked stackexchange thread, you may have a port conflict.
Hi, The output of command is

Code: Select all

# netstat -lnp | grep 69
udp        0      0 0.0.0.0:46796           0.0.0.0:*                           698/dhclient    
udp        0      0 0.0.0.0:68              0.0.0.0:*                           698/dhclient   
udp        0      0 172.30.11.99:69         0.0.0.0:*                           2174/in.tftpd   
udp6       0      0 :::55826                :::*                                698/dhclient    
unix  2      [ ACC ]     STREAM     LISTENING     13569    639/Xorg            @/tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     15369    583/gdm3            @/tmp/dbus-Qb6xjtVr
I was looking for it in my server, byt there is only one tftp server.
In "inetd.conf I have the line with tftp is commented:

Code: Select all

# grep -i tftp /etc/inetd.conf 
#:BOOT: TFTP service is provided primarily for booting.  Most sites
#tftp		dgram	udp4	wait	nobody /usr/sbin/tcpd /usr/sbin/in.tftpd --tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5 /srv/tft
I have no other ideas.

hobit
Posts: 9
Joined: 2018-06-28 21:09

Re: Execution of the command after reboot (systemd)

#17 Post by hobit »

Hello everyone,

I didn't have the power for continuing of this issue.
But I have done upgrade to the Debian Stretch at last week. And it was surprice! The TFTP-HPA service works. I cleared the crontab. I deleted the attempt in systemd (restart tftp-hpa services).

The first goal was resolved by upgrade to new version of Debian. There was a bug or some bugs. And nobody know where.

I didn't resolved the second goal. I wanted to learn about systemd. But I don't understand it. And there is nobody, who had knowlidge about systemd.

Thank you averybody, who answered me and who wanted help me.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Execution of the command after reboot (systemd)

#18 Post by pylkko »

You oversimplify the situation. You do not know that there was a bug. Software like this is being changed and new features added and old ones deprecated. Whatever change there is in the two versions of systemd could be by design. Also, upgrading the system from one release to another on Debian changes pretty much everything and the change could be in anything else.. for example some way the network stack works, or anything else. It could also be by accident that in the new system the services come up at boot in a slightly different order and the service just works. This is especially likely with systemd which starts services in parallel and not in a deterministic way like other init systems do.

Additionally, it is not surprising that there are things that no one here knows. After all there are only a few users here who are on no way officially linked with Debian development and some problems are more common and other ones rare. There is a long list of unanswered posts on this forum. Many of those questions nobody simply knows how to answer. Many of them are rare enough that other have not encountered them ever

Also you seriously confounded the situation by not giving simple and umambiguous descriptions and by adding random services that do God knows what. So it was challenging enough that many probably just gave up. Even now we don't know for sure that it started to work because of the upgrade. That's what you claim, but how do we know what other changes and solutions offered here and elsewhere on the net you did at the same time?

hobit
Posts: 9
Joined: 2018-06-28 21:09

Re: Execution of the command after reboot (systemd)

#19 Post by hobit »

pylkko wrote: Also you seriously confounded the situation by not giving simple and umambiguous descriptions and by adding random services that do God knows what. So it was challenging enough that many probably just gave up. Even now we don't know for sure that it started to work because of the upgrade. That's what you claim, but how do we know what other changes and solutions offered here and elsewhere on the net you did at the same time?
Hi pylkko, I agree with First and second paragraph. It is clear. I wanted to reduce possible bugs to minimum, that why I have chosen the Debian distribution.

But I don't understand what do you writed in the last paragraph? What is hard in my question? What did I add random services?

The question was very simple. One service "tftp" didn't run corectly after restart of server.
And I tried fix it by adding simple service. The service is very easy. I was write complete description. The service should do only "restart of tftp service", Nothing more.
What is random? What is hard for understand?
That all.

I gave all possible statements (outputs) about what happend. And described what and how I did. I didn't do anything extra. I answered to all question and sent outputs of commands. Nobody didn't ask to another explanation.

How could I have done differently? I am lama, how do I know what I should write?
When I ask something, so I am asking, because I do not know it. And I can not know how do I ask. when I do not know it.

How would you write it you?

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Execution of the command after reboot (systemd)

#20 Post by bw123 »

hobit wrote: ...
But I don't understand what do you writed in the last paragraph? What is hard in my question? What did I add random services?

The question was very simple. One service "tftp" didn't run corectly after restart of server.
And I tried fix it by adding simple service. The service is very easy. I was write complete description. The service should do only "restart of tftp service", Nothing more.
What is random? What is hard for understand?
That all.

I gave all possible statements (outputs) about what happend. And described what and how I did. I didn't do anything extra. I answered to all question and sent outputs of commands. Nobody didn't ask to another explanation.

How could I have done differently? I am lama, how do I know what I should write?
When I ask something, so I am asking, because I do not know it. And I can not know how do I ask. when I do not know it.

How would you write it you?
This response is exceptionally genuine and explains exactly how many people feel when trying to deal with similar issues with systemd. I wish I could help, and I'm sorry I have not read and tried to contribute something to the thread. We are all beginners here with systemd because it was thrust upon us all and trying to understand it is tough for people even after yrs of experience on linux.

When it works, it works. When it doesn't, get ready for months or yrs of research and waiting to find an answer.
resigned by AI ChatGPT

Post Reply